DiscordDispatchEventHandler

public protocol DiscordDispatchEventHandler

Protocol that declares a type will handle Discord dispatch events.

  • Handles channel creates from Discord.

    Declaration

    Swift

    func handleChannelCreate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles channel deletes from Discord.

    Declaration

    Swift

    func handleChannelDelete(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles channel updates from Discord.

    Declaration

    Swift

    func handleChannelUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles a dispatch event. This will call one of the other handle methods or the standard event handler.

    Declaration

    Swift

    func handleDispatch(event: DiscordDispatchEvent, data: DiscordGatewayPayloadData)

    Parameters

    event

    The dispatch event

    data

    The dispatch event’s data

  • Handles guild creates from Discord.

    Declaration

    Swift

    func handleGuildCreate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild deletes from Discord.

    Declaration

    Swift

    func handleGuildDelete(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild emoji updates from Discord.

    Declaration

    Swift

    func handleGuildEmojiUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild member adds from Discord.

    Declaration

    Swift

    func handleGuildMemberAdd(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild member removes from Discord.

    Declaration

    Swift

    func handleGuildMemberRemove(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild member updates from Discord.

    Declaration

    Swift

    func handleGuildMemberUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild members chunks from Discord.

    Declaration

    Swift

    func handleGuildMembersChunk(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild role creates from Discord.

    Declaration

    Swift

    func handleGuildRoleCreate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild role removes from Discord.

    Declaration

    Swift

    func handleGuildRoleRemove(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild member updates from Discord.

    Declaration

    Swift

    func handleGuildRoleUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles guild updates from Discord.

    Declaration

    Swift

    func handleGuildUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles message creates from Discord.

        - parameter with: The data from the event
    

    Declaration

    Swift

    func handleMessageCreate(with data: [String: Any])
  • Handles message updates from Discord.

    Declaration

    Swift

    func handleMessageUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles presence updates from Discord.

    Declaration

    Swift

    func handlePresenceUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event.

  • Handles the ready event from Discord.

    Declaration

    Swift

    func handleReady(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles voice server updates from Discord.

    Declaration

    Swift

    func handleVoiceServerUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event

  • Handles voice state updates from Discord.

    Declaration

    Swift

    func handleVoiceStateUpdate(with data: [String: Any])

    Parameters

    with

    The data from the event