|
1
|
|
|
# Copyright Pincer 2021-Present |
|
|
|
|
|
|
2
|
|
|
# Full MIT License can be found in `LICENSE` at the project root. |
|
3
|
|
|
|
|
4
|
|
|
from .app.application import Application |
|
5
|
|
|
from .app.command import ( |
|
6
|
|
|
AppCommandType, |
|
7
|
|
|
AppCommandOptionType, |
|
8
|
|
|
AppCommandInteractionDataOption, |
|
9
|
|
|
AppCommandOptionChoice, |
|
10
|
|
|
AppCommandOption, |
|
11
|
|
|
AppCommand, |
|
12
|
|
|
InteractableStructure, |
|
13
|
|
|
) |
|
14
|
|
|
from .app.intents import Intents |
|
15
|
|
|
from .app.interaction_base import ( |
|
16
|
|
|
CallbackType, |
|
17
|
|
|
InteractionType, |
|
18
|
|
|
MessageInteraction, |
|
19
|
|
|
) |
|
20
|
|
|
from .app.interaction_flags import InteractionFlags |
|
21
|
|
|
from .app.interactions import ResolvedData, InteractionData, Interaction |
|
22
|
|
|
from .app.mentionable import Mentionable |
|
23
|
|
|
from .app.session_start_limit import SessionStartLimit |
|
24
|
|
|
from .app.throttle_scope import ThrottleScope |
|
25
|
|
|
from .app.throttling import ThrottleInterface, DefaultThrottleHandler |
|
26
|
|
|
from .events.channel import ChannelPinsUpdateEvent |
|
27
|
|
|
from .events.error import DiscordError |
|
28
|
|
|
from .events.gateway_commands import ( |
|
29
|
|
|
Identify, |
|
30
|
|
|
Resume, |
|
31
|
|
|
RequestGuildMembers, |
|
32
|
|
|
UpdateVoiceState, |
|
33
|
|
|
StatusType, |
|
34
|
|
|
UpdatePresence, |
|
35
|
|
|
) |
|
36
|
|
|
from .events.guild import ( |
|
37
|
|
|
GuildBanAddEvent, |
|
38
|
|
|
GuildBanRemoveEvent, |
|
39
|
|
|
GuildEmojisUpdateEvent, |
|
40
|
|
|
GuildStickersUpdateEvent, |
|
41
|
|
|
GuildIntegrationsUpdateEvent, |
|
42
|
|
|
GuildMemberRemoveEvent, |
|
43
|
|
|
GuildMemberUpdateEvent, |
|
44
|
|
|
GuildMembersChunkEvent, |
|
45
|
|
|
GuildRoleCreateEvent, |
|
46
|
|
|
GuildRoleUpdateEvent, |
|
47
|
|
|
GuildRoleDeleteEvent, |
|
48
|
|
|
) |
|
49
|
|
|
from .events.hello_ready import HelloEvent, ReadyEvent |
|
50
|
|
|
from .events.integration import IntegrationDeleteEvent |
|
51
|
|
|
from .events.invite import InviteCreateEvent, InviteDeleteEvent |
|
52
|
|
|
from .events.message import ( |
|
53
|
|
|
MessageDeleteEvent, |
|
54
|
|
|
MessageDeleteBulkEvent, |
|
55
|
|
|
MessageReactionAddEvent, |
|
56
|
|
|
MessageReactionRemoveEvent, |
|
57
|
|
|
MessageReactionRemoveAllEvent, |
|
58
|
|
|
MessageReactionRemoveEmojiEvent, |
|
59
|
|
|
) |
|
60
|
|
|
from .events.presence import ( |
|
61
|
|
|
ActivityType, |
|
62
|
|
|
ActivityTimestamp, |
|
63
|
|
|
ActivityEmoji, |
|
64
|
|
|
ActivityParty, |
|
65
|
|
|
ActivityAssets, |
|
66
|
|
|
ActivitySecrets, |
|
67
|
|
|
ActivityFlags, |
|
68
|
|
|
ActivityButton, |
|
69
|
|
|
Activity, |
|
70
|
|
|
ClientStatus, |
|
71
|
|
|
PresenceUpdateEvent, |
|
72
|
|
|
) |
|
73
|
|
|
from .events.thread import ThreadListSyncEvent, ThreadMembersUpdateEvent |
|
74
|
|
|
from .events.typing_start import TypingStartEvent |
|
75
|
|
|
from .events.voice import VoiceServerUpdateEvent |
|
76
|
|
|
from .events.webhook import WebhooksUpdateEvent |
|
77
|
|
|
from .guild.audit_log import ( |
|
78
|
|
|
AuditLogEvent, |
|
79
|
|
|
AuditLogChange, |
|
80
|
|
|
AuditEntryInfo, |
|
81
|
|
|
AuditLogEntry, |
|
82
|
|
|
AuditLog, |
|
83
|
|
|
) |
|
84
|
|
|
from .guild.ban import Ban |
|
85
|
|
|
from .guild.channel import ( |
|
86
|
|
|
ChannelType, |
|
87
|
|
|
Channel, |
|
88
|
|
|
TextChannel, |
|
89
|
|
|
VoiceChannel, |
|
90
|
|
|
CategoryChannel, |
|
91
|
|
|
NewsChannel, |
|
92
|
|
|
ChannelMention, |
|
93
|
|
|
) |
|
94
|
|
|
from .guild.features import GuildFeature |
|
95
|
|
|
from .guild.followed_channel import FollowedChannel |
|
96
|
|
|
from .guild.guild import ( |
|
97
|
|
|
PremiumTier, |
|
98
|
|
|
GuildNSFWLevel, |
|
99
|
|
|
ExplicitContentFilterLevel, |
|
100
|
|
|
MFALevel, |
|
101
|
|
|
VerificationLevel, |
|
102
|
|
|
DefaultMessageNotificationLevel, |
|
103
|
|
|
SystemChannelFlags, |
|
104
|
|
|
Guild, |
|
105
|
|
|
) |
|
106
|
|
|
from .guild.invite import InviteTargetType, InviteStageInstance, Invite |
|
107
|
|
|
from .guild.member import GuildMember, PartialGuildMember, BaseMember |
|
108
|
|
|
from .guild.overwrite import Overwrite |
|
109
|
|
|
from .guild.permissions import Permissions |
|
110
|
|
|
from .guild.role import RoleTags, Role |
|
111
|
|
|
from .guild.stage import PrivacyLevel, StageInstance |
|
112
|
|
|
from .guild.template import GuildTemplate |
|
113
|
|
|
from .guild.thread import ThreadMetadata, ThreadMember |
|
114
|
|
|
from .guild.webhook import WebhookType, Webhook |
|
115
|
|
|
from .guild.welcome_screen import WelcomeScreenChannel, WelcomeScreen |
|
116
|
|
|
from .guild.widget import GuildWidget |
|
117
|
|
|
from .message.attachment import Attachment |
|
118
|
|
|
from .message.component import MessageComponent, ComponentType |
|
119
|
|
|
from .message.context import MessageContext |
|
120
|
|
|
from .message.embed import ( |
|
121
|
|
|
Embed, |
|
122
|
|
|
EmbedField, |
|
123
|
|
|
EmbedImage, |
|
124
|
|
|
EmbedAuthor, |
|
125
|
|
|
EmbedProvider, |
|
126
|
|
|
EmbedThumbnail, |
|
127
|
|
|
EmbedVideo, |
|
128
|
|
|
EmbedFooter, |
|
129
|
|
|
) |
|
130
|
|
|
from .message.emoji import Emoji |
|
131
|
|
|
from .message.file import File |
|
132
|
|
|
from .message.message import Message |
|
133
|
|
|
from .message.reaction import Reaction |
|
134
|
|
|
from .message.reference import MessageReference |
|
135
|
|
|
from .message.sticker import ( |
|
136
|
|
|
StickerType, |
|
137
|
|
|
StickerFormatType, |
|
138
|
|
|
Sticker, |
|
139
|
|
|
StickerItem, |
|
140
|
|
|
StickerPack, |
|
141
|
|
|
) |
|
142
|
|
|
from .message.user_message import ( |
|
143
|
|
|
MessageActivityType, |
|
144
|
|
|
MessageFlags, |
|
145
|
|
|
MessageType, |
|
146
|
|
|
MessageActivity, |
|
147
|
|
|
AllowedMentions, |
|
148
|
|
|
AllowedMentionTypes, |
|
149
|
|
|
UserMessage, |
|
150
|
|
|
) |
|
151
|
|
|
from .user.connection import Connection |
|
152
|
|
|
from .user.integration import ( |
|
153
|
|
|
IntegrationExpireBehavior, |
|
154
|
|
|
IntegrationApplication, |
|
155
|
|
|
Integration, |
|
156
|
|
|
IntegrationAccount, |
|
157
|
|
|
) |
|
158
|
|
|
from .user.user import User, PremiumTypes, VisibilityType |
|
159
|
|
|
from .user.voice_state import VoiceState |
|
160
|
|
|
from .voice.region import VoiceRegion |
|
161
|
|
|
|
|
162
|
|
|
__all__ = ( |
|
163
|
|
|
"Activity", |
|
164
|
|
|
"ActivityAssets", |
|
165
|
|
|
"ActivityButton", |
|
166
|
|
|
"ActivityEmoji", |
|
167
|
|
|
"ActivityFlags", |
|
168
|
|
|
"ActivityParty", |
|
169
|
|
|
"ActivitySecrets", |
|
170
|
|
|
"ActivityTimestamp", |
|
171
|
|
|
"ActivityType", |
|
172
|
|
|
"AllowedMentionTypes", |
|
173
|
|
|
"AllowedMentions", |
|
174
|
|
|
"AppCommand", |
|
175
|
|
|
"AppCommandInteractionDataOption", |
|
176
|
|
|
"AppCommandOption", |
|
177
|
|
|
"AppCommandOptionChoice", |
|
178
|
|
|
"AppCommandOptionType", |
|
179
|
|
|
"AppCommandType", |
|
180
|
|
|
"Application", |
|
181
|
|
|
"Attachment", |
|
182
|
|
|
"AuditEntryInfo", |
|
183
|
|
|
"AuditLog", |
|
184
|
|
|
"AuditLogChange", |
|
185
|
|
|
"AuditLogEntry", |
|
186
|
|
|
"AuditLogEvent", |
|
187
|
|
|
"Ban", |
|
188
|
|
|
"BaseMember", |
|
189
|
|
|
"CallbackType", |
|
190
|
|
|
"CategoryChannel", |
|
191
|
|
|
"Channel", |
|
192
|
|
|
"ChannelMention", |
|
193
|
|
|
"ChannelPinsUpdateEvent", |
|
194
|
|
|
"ChannelType", |
|
195
|
|
|
"ClientStatus", |
|
196
|
|
|
"ComponentType", |
|
197
|
|
|
"Connection", |
|
198
|
|
|
"DefaultMessageNotificationLevel", |
|
199
|
|
|
"DefaultThrottleHandler", |
|
200
|
|
|
"DiscordError", |
|
201
|
|
|
"Embed", |
|
202
|
|
|
"EmbedAuthor", |
|
203
|
|
|
"EmbedField", |
|
204
|
|
|
"EmbedFooter", |
|
205
|
|
|
"EmbedImage", |
|
206
|
|
|
"EmbedProvider", |
|
207
|
|
|
"EmbedThumbnail", |
|
208
|
|
|
"EmbedVideo", |
|
209
|
|
|
"Emoji", |
|
210
|
|
|
"ExplicitContentFilterLevel", |
|
211
|
|
|
"File", |
|
212
|
|
|
"FollowedChannel", |
|
213
|
|
|
"Guild", |
|
214
|
|
|
"GuildBanAddEvent", |
|
215
|
|
|
"GuildBanRemoveEvent", |
|
216
|
|
|
"GuildEmojisUpdateEvent", |
|
217
|
|
|
"GuildFeature", |
|
218
|
|
|
"GuildIntegrationsUpdateEvent", |
|
219
|
|
|
"GuildMember", |
|
220
|
|
|
"GuildMemberRemoveEvent", |
|
221
|
|
|
"GuildMemberUpdateEvent", |
|
222
|
|
|
"GuildMembersChunkEvent", |
|
223
|
|
|
"GuildNSFWLevel", |
|
224
|
|
|
"GuildRoleCreateEvent", |
|
225
|
|
|
"GuildRoleDeleteEvent", |
|
226
|
|
|
"GuildRoleUpdateEvent", |
|
227
|
|
|
"GuildStickersUpdateEvent", |
|
228
|
|
|
"GuildTemplate", |
|
229
|
|
|
"GuildWidget", |
|
230
|
|
|
"HelloEvent", |
|
231
|
|
|
"Identify", |
|
232
|
|
|
"Integration", |
|
233
|
|
|
"IntegrationAccount", |
|
234
|
|
|
"IntegrationApplication", |
|
235
|
|
|
"IntegrationDeleteEvent", |
|
236
|
|
|
"IntegrationExpireBehavior", |
|
237
|
|
|
"Intents", |
|
238
|
|
|
"InteractableStructure", |
|
239
|
|
|
"Interaction", |
|
240
|
|
|
"InteractionData", |
|
241
|
|
|
"InteractionFlags", |
|
242
|
|
|
"InteractionType", |
|
243
|
|
|
"Invite", |
|
244
|
|
|
"InviteCreateEvent", |
|
245
|
|
|
"InviteDeleteEvent", |
|
246
|
|
|
"InviteStageInstance", |
|
247
|
|
|
"InviteTargetType", |
|
248
|
|
|
"MFALevel", |
|
249
|
|
|
"Mentionable", |
|
250
|
|
|
"Message", |
|
251
|
|
|
"MessageActivity", |
|
252
|
|
|
"MessageActivityType", |
|
253
|
|
|
"MessageComponent", |
|
254
|
|
|
"MessageContext", |
|
255
|
|
|
"MessageDeleteBulkEvent", |
|
256
|
|
|
"MessageDeleteEvent", |
|
257
|
|
|
"MessageFlags", |
|
258
|
|
|
"MessageInteraction", |
|
259
|
|
|
"MessageReactionAddEvent", |
|
260
|
|
|
"MessageReactionRemoveAllEvent", |
|
261
|
|
|
"MessageReactionRemoveEmojiEvent", |
|
262
|
|
|
"MessageReactionRemoveEvent", |
|
263
|
|
|
"MessageReference", |
|
264
|
|
|
"MessageType", |
|
265
|
|
|
"NewsChannel", |
|
266
|
|
|
"Overwrite", |
|
267
|
|
|
"PartialGuildMember", |
|
268
|
|
|
"Permissions", |
|
269
|
|
|
"PremiumTier", |
|
270
|
|
|
"PremiumTypes", |
|
271
|
|
|
"PresenceUpdateEvent", |
|
272
|
|
|
"PrivacyLevel", |
|
273
|
|
|
"Reaction", |
|
274
|
|
|
"ReadyEvent", |
|
275
|
|
|
"RequestGuildMembers", |
|
276
|
|
|
"ResolvedData", |
|
277
|
|
|
"Resume", |
|
278
|
|
|
"Role", |
|
279
|
|
|
"RoleTags", |
|
280
|
|
|
"SessionStartLimit", |
|
281
|
|
|
"StageInstance", |
|
282
|
|
|
"StatusType", |
|
283
|
|
|
"Sticker", |
|
284
|
|
|
"StickerFormatType", |
|
285
|
|
|
"StickerItem", |
|
286
|
|
|
"StickerPack", |
|
287
|
|
|
"StickerType", |
|
288
|
|
|
"SystemChannelFlags", |
|
289
|
|
|
"TextChannel", |
|
290
|
|
|
"ThreadListSyncEvent", |
|
291
|
|
|
"ThreadMember", |
|
292
|
|
|
"ThreadMembersUpdateEvent", |
|
293
|
|
|
"ThreadMetadata", |
|
294
|
|
|
"ThrottleInterface", |
|
295
|
|
|
"ThrottleScope", |
|
296
|
|
|
"TypingStartEvent", |
|
297
|
|
|
"UpdatePresence", |
|
298
|
|
|
"UpdateVoiceState", |
|
299
|
|
|
"User", |
|
300
|
|
|
"UserMessage", |
|
301
|
|
|
"VerificationLevel", |
|
302
|
|
|
"VisibilityType", |
|
303
|
|
|
"VoiceChannel", |
|
304
|
|
|
"VoiceRegion", |
|
305
|
|
|
"VoiceServerUpdateEvent", |
|
306
|
|
|
"VoiceState", |
|
307
|
|
|
"Webhook", |
|
308
|
|
|
"WebhookType", |
|
309
|
|
|
"WebhooksUpdateEvent", |
|
310
|
|
|
"WelcomeScreen", |
|
311
|
|
|
"WelcomeScreenChannel", |
|
312
|
|
|
) |
|
313
|
|
|
|