Skip to content

Map Discord events to API events #2

Description

@Kiskae

All of the events that are being sent by Discord:

  • CHANNEL_CREATE => ChannelCreateEvent.* for Public and Private channels
  • CHANNEL_UPDATE => ChannelUpdateEvent
  • CHANNEL_DELETE => ChannelDeleteEvent.* for Public and Private channels
  • MESSAGE_CREATE => MessageCreateEvent
  • MESSAGE_UPDATE => MessageEditEvent and MessageEmbedEvent since Discord sends an 'update' when it finishes parsing for embeds
  • MESSAGE_DELETE => MessageDeleteEvent
  • MESSAGE_ACK Not sure if applicable to the client, mostly for gui clients.
  • GUILD_CREATE => GuildCreateEvent
  • GUILD_UPDATE => GuildUpdateEvent
  • GUILD_DELETE => GuildDeleteEvent
  • GUILD_MEMBER_ADD => MemberJoinedEvent
  • GUILD_MEMBER_UPDATE => MemberUpdateEvent
  • GUILD_MEMBER_REMOVE => MemberLeftEvent
  • GUILD_BAN_ADD => BanCreateEvent
  • GUILD_BAN_REMOVE => BanRemoveEvent
  • GUILD_ROLE_CREATE => RoleCreateEvent
  • GUILD_ROLE_UPDATE => RoleUpdateEvent
  • GUILD_ROLE_DELETE => RoleDeleteEvent
  • USER_UPDATE Sent whenever the user changes their account properties
  • READY Initial event to set up the model, potentially could be mapped to an event that signals that the model is ready.
  • TYPING_START Indicates someone started typing, not sure about a use-case
  • PRESENCE_UPDATE Sent whenever the idle state or game played changes, very VERY spammy.
  • GUILD_EMOJIS_UPDATE Sent whenever discord updates the automatically updated emoji's
  • GUILD_INTEGRATIONS_UPDATE Sent when discord completes the integrations update
  • VOICE_STATE_UPDATE Sent whenever the voice state (deaf/mute) changes
  • RESUMED Not yet encountered and there is very little documentation
  • GUILD_MEMBERS_CHUNK Not yet encountered and there is very little documentation
  • USER_GUILD_SETTINGS_UPDATE Not yet encountered and there is very little documentation
  • VOICE_SERVER_UPDATE Not yet encountered and there is very little documentation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions