Skip to main content

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 subscription_create;
72mod subscription_delete;
73mod subscription_update;
74mod thread_create;
75mod thread_delete;
76mod thread_list_sync;
77mod thread_member_update;
78mod thread_members_update;
79mod thread_update;
80mod typing_start;
81mod unavailable_guild;
82mod user_update;
83mod voice_server_update;
84mod voice_state_update;
85mod webhooks_update;
86
87pub use self::{
88    auto_moderation_action_execution::AutoModerationActionExecution,
89    auto_moderation_rule_create::AutoModerationRuleCreate,
90    auto_moderation_rule_delete::AutoModerationRuleDelete,
91    auto_moderation_rule_update::AutoModerationRuleUpdate, ban_add::BanAdd, ban_remove::BanRemove,
92    channel_create::ChannelCreate, channel_delete::ChannelDelete,
93    channel_pins_update::ChannelPinsUpdate, channel_update::ChannelUpdate,
94    command_permissions_update::CommandPermissionsUpdate, entitlement_create::EntitlementCreate,
95    entitlement_delete::EntitlementDelete, entitlement_update::EntitlementUpdate,
96    guild_audit_log_entry_create::GuildAuditLogEntryCreate, guild_create::GuildCreate,
97    guild_delete::GuildDelete, guild_emojis_update::GuildEmojisUpdate,
98    guild_integrations_update::GuildIntegrationsUpdate,
99    guild_scheduled_event_create::GuildScheduledEventCreate,
100    guild_scheduled_event_delete::GuildScheduledEventDelete,
101    guild_scheduled_event_update::GuildScheduledEventUpdate,
102    guild_scheduled_event_user_add::GuildScheduledEventUserAdd,
103    guild_scheduled_event_user_remove::GuildScheduledEventUserRemove,
104    guild_stickers_update::GuildStickersUpdate, guild_update::GuildUpdate, hello::Hello,
105    integration_create::IntegrationCreate, integration_delete::IntegrationDelete,
106    integration_update::IntegrationUpdate, interaction_create::InteractionCreate,
107    invite_create::InviteCreate, invite_delete::InviteDelete, member_add::MemberAdd,
108    member_chunk::MemberChunk, member_remove::MemberRemove, member_update::MemberUpdate,
109    message_create::MessageCreate, message_delete::MessageDelete,
110    message_delete_bulk::MessageDeleteBulk, message_poll_vote_add::MessagePollVoteAdd,
111    message_poll_vote_remove::MessagePollVoteRemove, message_update::MessageUpdate,
112    presence_update::PresenceUpdate, rate_limited::RateLimited, reaction_add::ReactionAdd,
113    reaction_remove::ReactionRemove, reaction_remove_all::ReactionRemoveAll,
114    reaction_remove_emoji::ReactionRemoveEmoji, ready::Ready, role_create::RoleCreate,
115    role_delete::RoleDelete, role_update::RoleUpdate, stage_instance_create::StageInstanceCreate,
116    stage_instance_delete::StageInstanceDelete, stage_instance_update::StageInstanceUpdate,
117    subscription_create::SubscriptionCreate, subscription_delete::SubscriptionDelete,
118    subscription_update::SubscriptionUpdate, thread_create::ThreadCreate,
119    thread_delete::ThreadDelete, thread_list_sync::ThreadListSync,
120    thread_member_update::ThreadMemberUpdate, thread_members_update::ThreadMembersUpdate,
121    thread_update::ThreadUpdate, typing_start::TypingStart, unavailable_guild::UnavailableGuild,
122    user_update::UserUpdate, voice_server_update::VoiceServerUpdate,
123    voice_state_update::VoiceStateUpdate, webhooks_update::WebhooksUpdate,
124};