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 rate_limited;
16pub mod reaction_remove_emoji;
17
18mod auto_moderation_action_execution;
19mod auto_moderation_rule_create;
20mod auto_moderation_rule_delete;
21mod auto_moderation_rule_update;
22mod ban_add;
23mod ban_remove;
24mod channel_create;
25mod channel_delete;
26mod channel_pins_update;
27mod channel_update;
28mod command_permissions_update;
29mod entitlement_create;
30mod entitlement_delete;
31mod entitlement_update;
32mod guild_audit_log_entry_create;
33mod guild_create;
34mod guild_delete;
35mod guild_emojis_update;
36mod guild_integrations_update;
37mod guild_scheduled_event_create;
38mod guild_scheduled_event_delete;
39mod guild_scheduled_event_update;
40mod guild_scheduled_event_user_add;
41mod guild_scheduled_event_user_remove;
42mod guild_stickers_update;
43mod guild_update;
44mod hello;
45mod integration_create;
46mod integration_delete;
47mod integration_update;
48mod interaction_create;
49mod invite_delete;
50mod member_add;
51mod member_chunk;
52mod member_remove;
53mod member_update;
54mod message_create;
55mod message_delete;
56mod message_delete_bulk;
57mod message_poll_vote_add;
58mod message_poll_vote_remove;
59mod message_update;
60mod presence_update;
61mod reaction_add;
62mod reaction_remove;
63mod reaction_remove_all;
64mod ready;
65mod role_create;
66mod role_delete;
67mod role_update;
68mod stage_instance_create;
69mod stage_instance_delete;
70mod stage_instance_update;
71mod thread_create;
72mod thread_delete;
73mod thread_list_sync;
74mod thread_member_update;
75mod thread_members_update;
76mod thread_update;
77mod typing_start;
78mod unavailable_guild;
79mod user_update;
80mod voice_server_update;
81mod voice_state_update;
82mod webhooks_update;
83
84pub use self::{
85    auto_moderation_action_execution::AutoModerationActionExecution,
86    auto_moderation_rule_create::AutoModerationRuleCreate,
87    auto_moderation_rule_delete::AutoModerationRuleDelete,
88    auto_moderation_rule_update::AutoModerationRuleUpdate, ban_add::BanAdd, ban_remove::BanRemove,
89    channel_create::ChannelCreate, channel_delete::ChannelDelete,
90    channel_pins_update::ChannelPinsUpdate, channel_update::ChannelUpdate,
91    command_permissions_update::CommandPermissionsUpdate, entitlement_create::EntitlementCreate,
92    entitlement_delete::EntitlementDelete, entitlement_update::EntitlementUpdate,
93    guild_audit_log_entry_create::GuildAuditLogEntryCreate, guild_create::GuildCreate,
94    guild_delete::GuildDelete, guild_emojis_update::GuildEmojisUpdate,
95    guild_integrations_update::GuildIntegrationsUpdate,
96    guild_scheduled_event_create::GuildScheduledEventCreate,
97    guild_scheduled_event_delete::GuildScheduledEventDelete,
98    guild_scheduled_event_update::GuildScheduledEventUpdate,
99    guild_scheduled_event_user_add::GuildScheduledEventUserAdd,
100    guild_scheduled_event_user_remove::GuildScheduledEventUserRemove,
101    guild_stickers_update::GuildStickersUpdate, guild_update::GuildUpdate, hello::Hello,
102    integration_create::IntegrationCreate, integration_delete::IntegrationDelete,
103    integration_update::IntegrationUpdate, interaction_create::InteractionCreate,
104    invite_create::InviteCreate, invite_delete::InviteDelete, member_add::MemberAdd,
105    member_chunk::MemberChunk, member_remove::MemberRemove, member_update::MemberUpdate,
106    message_create::MessageCreate, message_delete::MessageDelete,
107    message_delete_bulk::MessageDeleteBulk, message_poll_vote_add::MessagePollVoteAdd,
108    message_poll_vote_remove::MessagePollVoteRemove, message_update::MessageUpdate,
109    presence_update::PresenceUpdate, rate_limited::RateLimited, reaction_add::ReactionAdd,
110    reaction_remove::ReactionRemove, reaction_remove_all::ReactionRemoveAll,
111    reaction_remove_emoji::ReactionRemoveEmoji, ready::Ready, role_create::RoleCreate,
112    role_delete::RoleDelete, role_update::RoleUpdate, stage_instance_create::StageInstanceCreate,
113    stage_instance_delete::StageInstanceDelete, stage_instance_update::StageInstanceUpdate,
114    thread_create::ThreadCreate, thread_delete::ThreadDelete, thread_list_sync::ThreadListSync,
115    thread_member_update::ThreadMemberUpdate, thread_members_update::ThreadMembersUpdate,
116    thread_update::ThreadUpdate, typing_start::TypingStart, unavailable_guild::UnavailableGuild,
117    user_update::UserUpdate, voice_server_update::VoiceServerUpdate,
118    voice_state_update::VoiceStateUpdate, webhooks_update::WebhooksUpdate,
119};