Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GuildScheduledEventMethods

Methods for interacting with Guild Scheduled Events

Hierarchy

  • GuildScheduledEventMethods

Index

Constructors

  • Create a new Guild Scheduled Event Method Handler

    Usually SnowTransfer creates a method handler for you, this is here for completion

    You can access the methods listed via client.guildScheduledEvent.method, where client is an initialized SnowTransfer instance

    Parameters

    Returns <internal>.GuildScheduledEventMethods

Properties

requestHandler: <internal>.RequestHandler

Methods

  • Create a scheduled event for a guild

    example

    const client = new SnowTransfer("TOKEN") const eventData = { name: "My event!", entity_type: 1, start_time: "2020-01-01T00:00:00Z", privacy_level: 1 } const event = await client.guildScheduledEvent.createGuildScheduledEvent(guildId, eventData)

    Parameters

    Returns Promise<<internal>."/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/GuildScheduledEvent".GuildScheduledEvent>

    A scheduled event

    Permissions needed Condition
    MANAGE_EVENTS always
    MANAGE_CHANNELS If entity_type is STAGE_INSTANCE
    MUTE_MEMBERS If entity_type is STAGE_INSTANCE
    MOVE_MEMBERS If entity_type is STAGE_INSTANCE
    VIEW_CHANNEL If entity_type is VOICE
    CONNECT If entity_type is VOICE
  • deleteGuildScheduledEvent(guildId: string, eventId: string): Promise<void>
  • Delete a specific scheduled event for a guild

    example

    const client = new SnowTransfer("TOKEN") client.guildScheduledEvent.deleteGuildScheduledEvent(guildId, eventId)

    Parameters

    • guildId: string

      The Id of the guild

    • eventId: string

      The Id of the event

    Returns Promise<void>

    Resolves the promise on successful execution

    Permissions needed Condition
    MANAGE_EVENTS always
    MANAGE_CHANNELS If entity_type is STAGE_INSTANCE
    MUTE_MEMBERS If entity_type is STAGE_INSTANCE
    MOVE_MEMBERS If entity_type is STAGE_INSTANCE
    VIEW_CHANNEL If entity_type is VOICE
    CONNECT If entity_type is VOICE
  • Edit the details of a scheduled event for a guild

    example

    // Updates a scheduled event to be an external event that will take place in Brazil and end in 2025 const client = new SnowTransfer("TOKEN") const event = await client.guildScheduledEvent.editGuildScheduledEvent(guildId, eventId, { entity_type: 3, channel_id: null, entity_metadata: { location: "Brazil" }, scheduled_end_time: "2025-01-01T00:00:00.000Z" })

    Parameters

    Returns Promise<<internal>."/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/GuildScheduledEvent".GuildScheduledEvent>

    A scheduled event

    Permissions needed Condition
    MANAGE_EVENTS always
    MANAGE_CHANNELS If entity_type is STAGE_INSTANCE
    MUTE_MEMBERS If entity_type is STAGE_INSTANCE
    MOVE_MEMBERS If entity_type is STAGE_INSTANCE
    VIEW_CHANNEL If entity_type is VOICE
    CONNECT If entity_type is VOICE

Generated using TypeDoc