twilight_model/gateway/payload/incoming/
mod.rs

1//! Payloads that are incoming from the Discord Gateway API.
2//!
3//! These are sent by the Discord Gateway API to shards. The only payload
4//! required for the operation of a shard is [`Ready`]; all other payloads are
5//! for users to consume in their own operations based on the [`Intents`] they
6//! have set
7//!
8//! Refer to [Discord Docs / Gateway Events][1] for Discord's documentation
9//! about incoming and outgoing events.
10//!
11//! [`Intents`]: crate::gateway::Intents
12//! [1]: https://discord.com/developers/docs/topics/gateway#commands-and-events-gateway-events
13
14pub mod invite_create;
15pub mod reaction_remove_emoji;
16
17mod auto_moderation_action_execution;
18mod auto_moderation_rule_create;
19mod auto_moderation_rule_delete;
20mod auto_moderation_rule_update;
21mod ban_add;
22mod ban_remove;
23mod channel_create;
24mod channel_delete;
25mod channel_pins_update;
26mod channel_update;
27mod command_permissions_update;
28mod entitlement_create;
29mod entitlement_delete;
30mod entitlement_update;
31mod guild_audit_log_entry_create;
32mod guild_create;
33mod guild_delete;
34mod guild_emojis_update;
35mod guild_integrations_update;
36mod guild_scheduled_event_create;
37mod guild_scheduled_event_delete;
38mod guild_scheduled_event_update;
39mod guild_scheduled_event_user_add;
40mod guild_scheduled_event_user_remove;
41mod guild_stickers_update;
42mod guild_update;
43mod hello;
44mod integration_create;
45mod integration_delete;
46mod integration_update;
47mod interaction_create;
48mod invite_delete;
49mod member_add;
50mod member_chunk;
51mod member_remove;
52mod member_update;
53mod message_create;
54mod message_delete;
55mod message_delete_bulk;
56mod message_poll_vote_add;
57mod message_poll_vote_remove;
58mod message_update;
59mod presence_update;
60mod reaction_add;
61mod reaction_remove;
62mod reaction_remove_all;
63mod ready;
64mod role_create;
65mod role_delete;
66mod role_update;
67mod stage_instance_create;
68mod stage_instance_delete;
69mod stage_instance_update;
70mod thread_create;
71mod thread_delete;
72mod thread_list_sync;
73mod thread_member_update;
74mod thread_members_update;
75mod thread_update;
76mod typing_start;
77mod unavailable_guild;
78mod user_update;
79mod voice_server_update;
80mod voice_state_update;
81mod webhooks_update;
82
83pub use self::{
84    auto_moderation_action_execution::AutoModerationActionExecution,
85    auto_moderation_rule_create::AutoModerationRuleCreate,
86    auto_moderation_rule_delete::AutoModerationRuleDelete,
87    auto_moderation_rule_update::AutoModerationRuleUpdate, ban_add::BanAdd, ban_remove::BanRemove,
88    channel_create::ChannelCreate, channel_delete::ChannelDelete,
89    channel_pins_update::ChannelPinsUpdate, channel_update::ChannelUpdate,
90    command_permissions_update::CommandPermissionsUpdate, entitlement_create::EntitlementCreate,
91    entitlement_delete::EntitlementDelete, entitlement_update::EntitlementUpdate,
92    guild_audit_log_entry_create::GuildAuditLogEntryCreate, guild_create::GuildCreate,
93    guild_delete::GuildDelete, guild_emojis_update::GuildEmojisUpdate,
94    guild_integrations_update::GuildIntegrationsUpdate,
95    guild_scheduled_event_create::GuildScheduledEventCreate,
96    guild_scheduled_event_delete::GuildScheduledEventDelete,
97    guild_scheduled_event_update::GuildScheduledEventUpdate,
98    guild_scheduled_event_user_add::GuildScheduledEventUserAdd,
99    guild_scheduled_event_user_remove::GuildScheduledEventUserRemove,
100    guild_stickers_update::GuildStickersUpdate, guild_update::GuildUpdate, hello::Hello,
101    integration_create::IntegrationCreate, integration_delete::IntegrationDelete,
102    integration_update::IntegrationUpdate, interaction_create::InteractionCreate,
103    invite_create::InviteCreate, invite_delete::InviteDelete, member_add::MemberAdd,
104    member_chunk::MemberChunk, member_remove::MemberRemove, member_update::MemberUpdate,
105    message_create::MessageCreate, message_delete::MessageDelete,
106    message_delete_bulk::MessageDeleteBulk, message_poll_vote_add::MessagePollVoteAdd,
107    message_poll_vote_remove::MessagePollVoteRemove, message_update::MessageUpdate,
108    presence_update::PresenceUpdate, reaction_add::ReactionAdd, reaction_remove::ReactionRemove,
109    reaction_remove_all::ReactionRemoveAll, reaction_remove_emoji::ReactionRemoveEmoji,
110    ready::Ready, role_create::RoleCreate, role_delete::RoleDelete, role_update::RoleUpdate,
111    stage_instance_create::StageInstanceCreate, stage_instance_delete::StageInstanceDelete,
112    stage_instance_update::StageInstanceUpdate, thread_create::ThreadCreate,
113    thread_delete::ThreadDelete, thread_list_sync::ThreadListSync,
114    thread_member_update::ThreadMemberUpdate, thread_members_update::ThreadMembersUpdate,
115    thread_update::ThreadUpdate, typing_start::TypingStart, unavailable_guild::UnavailableGuild,
116    user_update::UserUpdate, voice_server_update::VoiceServerUpdate,
117    voice_state_update::VoiceStateUpdate, webhooks_update::WebhooksUpdate,
118};