micup.ts 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -38
- package/README.tr.md +137 -0
- package/dist/bot/client.d.ts +79 -0
- package/dist/bot/client.js +299 -0
- package/dist/events/background.d.ts +7 -0
- package/dist/events/background.js +23 -0
- package/dist/events/catalog.d.ts +243 -0
- package/dist/events/catalog.js +1 -0
- package/dist/events/guild-tag.d.ts +9 -0
- package/dist/events/guild-tag.js +38 -0
- package/dist/events/mux.d.ts +20 -5
- package/dist/events/names.d.ts +1 -0
- package/dist/events/names.js +71 -0
- package/dist/events/safe.d.ts +9 -0
- package/dist/events/safe.js +27 -0
- package/dist/gateway/compression.d.ts +9 -0
- package/dist/gateway/compression.js +119 -0
- package/dist/gateway/connection.js +42 -17
- package/dist/gateway/protocol.d.ts +4 -1
- package/dist/gateway/protocol.js +9 -3
- package/dist/gateway/subscription.d.ts +10 -0
- package/dist/gateway/subscription.js +26 -0
- package/dist/index.d.ts +48 -4
- package/dist/index.js +19 -3
- package/dist/model/components.d.ts +82 -0
- package/dist/model/components.js +74 -0
- package/dist/model/constants.d.ts +330 -0
- package/dist/model/constants.js +330 -0
- package/dist/model/embed.d.ts +59 -0
- package/dist/model/embed.js +40 -0
- package/dist/model/entities.d.ts +125 -0
- package/dist/model/entities.js +12 -0
- package/dist/model/format.d.ts +32 -0
- package/dist/model/format.js +61 -0
- package/dist/model/guild.d.ts +114 -1
- package/dist/model/helpers.d.ts +88 -0
- package/dist/model/helpers.js +185 -0
- package/dist/model/interaction.d.ts +1 -1
- package/dist/model/locale.d.ts +15 -0
- package/dist/model/locale.js +55 -0
- package/dist/model/media.d.ts +23 -0
- package/dist/model/media.js +65 -0
- package/dist/model/permissions.d.ts +5 -0
- package/dist/model/permissions.js +31 -0
- package/dist/rest/attachments.d.ts +26 -0
- package/dist/rest/attachments.js +82 -0
- package/dist/rest/channels.d.ts +87 -3
- package/dist/rest/channels.js +181 -2
- package/dist/rest/commands.d.ts +1 -0
- package/dist/rest/commands.js +17 -0
- package/dist/rest/discovery.d.ts +35 -0
- package/dist/rest/discovery.js +33 -0
- package/dist/rest/errors.d.ts +38 -0
- package/dist/rest/errors.js +46 -0
- package/dist/rest/expressions.d.ts +65 -0
- package/dist/rest/expressions.js +89 -0
- package/dist/rest/guilds.d.ts +102 -1
- package/dist/rest/guilds.js +127 -0
- package/dist/rest/identity.d.ts +1 -0
- package/dist/rest/identity.js +15 -0
- package/dist/rest/interactions.d.ts +1 -1
- package/dist/rest/messages.d.ts +54 -30
- package/dist/rest/messages.js +32 -12
- package/dist/rest/rooms.d.ts +142 -0
- package/dist/rest/rooms.js +133 -0
- package/dist/rest/sounds.d.ts +44 -0
- package/dist/rest/sounds.js +89 -0
- package/dist/rest/transport.d.ts +8 -2
- package/dist/rest/transport.js +38 -5
- package/dist/rest/users.d.ts +65 -0
- package/dist/rest/users.js +63 -0
- package/dist/rest/webhooks.d.ts +56 -0
- package/dist/rest/webhooks.js +94 -0
- package/dist/session/inventory.d.ts +22 -0
- package/dist/session/inventory.js +159 -0
- package/dist/session/session.d.ts +21 -2
- package/dist/session/session.js +61 -4
- package/dist/session/voice.d.ts +1 -0
- package/dist/session/voice.js +25 -17
- package/dist/shard/manager.d.ts +38 -1
- package/dist/shard/manager.js +87 -0
- package/dist/state/cache.d.ts +6 -1
- package/dist/state/cache.js +45 -1
- package/docs/README.md +13 -0
- package/docs/commands-and-interactions.md +120 -0
- package/docs/errors-and-limits.md +79 -0
- package/docs/gateway-and-sharding.md +102 -0
- package/docs/getting-started.md +79 -0
- package/docs/migrating.md +44 -0
- package/docs/rest-reference.md +101 -0
- package/docs/voice.md +95 -0
- package/package.json +25 -7
- package/dist/rest/client.d.ts +0 -48
- package/dist/rest/client.js +0 -151
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export const ComponentType = { ActionRow: 1, Button: 2, StringSelect: 3, TextInput: 4, UserSelect: 5, RoleSelect: 6, MentionableSelect: 7, ChannelSelect: 8 };
|
|
2
|
+
export const ButtonStyle = { Primary: 1, Secondary: 2, Success: 3, Danger: 4, Link: 5 };
|
|
3
|
+
export const TextInputStyle = { Short: 1, Paragraph: 2 };
|
|
4
|
+
const size = (value) => value === undefined ? 0 : [...value].length;
|
|
5
|
+
function checkId(value) {
|
|
6
|
+
if (!value || Buffer.byteLength(value) > 100)
|
|
7
|
+
throw new RangeError('Micup component IDs must contain 1 to 100 bytes');
|
|
8
|
+
}
|
|
9
|
+
export function actionRow(...buttons) {
|
|
10
|
+
if (!buttons.length || buttons.length > 5)
|
|
11
|
+
throw new RangeError('An action row needs one to five buttons');
|
|
12
|
+
for (const button of buttons) {
|
|
13
|
+
if (button.type !== 2 || ![1, 2, 3, 4, 5].includes(button.style) ||
|
|
14
|
+
(!button.label && !button.emoji) || size(button.label) > 80)
|
|
15
|
+
throw new TypeError('Invalid Micup button');
|
|
16
|
+
if (button.style === 5) {
|
|
17
|
+
if (!button.url || !URL.canParse(button.url) || !['http:', 'https:'].includes(new URL(button.url).protocol) || button.custom_id) {
|
|
18
|
+
throw new TypeError('Link buttons require an HTTP(S) URL');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
checkId(button.custom_id);
|
|
23
|
+
if (button.url)
|
|
24
|
+
throw new TypeError('Interactive buttons use a custom ID');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return { type: 1, components: structuredClone(buttons) };
|
|
28
|
+
}
|
|
29
|
+
export function selectRow(menu) {
|
|
30
|
+
checkId(menu.custom_id);
|
|
31
|
+
const { options, min_values: min = 1, max_values: max = 1 } = menu;
|
|
32
|
+
if (![3, 5, 6, 7, 8].includes(menu.type) || size(menu.placeholder) > 150 ||
|
|
33
|
+
!Number.isInteger(min) || !Number.isInteger(max) || min < 0 || max < 1 || min > max || max > 25 ||
|
|
34
|
+
(menu.type === 3 ? !options?.length || options.length > 25 || max > options.length : options?.length) ||
|
|
35
|
+
(menu.type !== 8 && menu.channel_types?.length)) {
|
|
36
|
+
throw new TypeError('Invalid Micup select menu');
|
|
37
|
+
}
|
|
38
|
+
const values = new Set();
|
|
39
|
+
for (const option of options ?? []) {
|
|
40
|
+
if (!option.label || size(option.label) > 100 || !option.value || size(option.value) > 100 ||
|
|
41
|
+
size(option.description) > 100 || values.has(option.value)) {
|
|
42
|
+
throw new TypeError('Invalid or duplicated Micup select option');
|
|
43
|
+
}
|
|
44
|
+
values.add(option.value);
|
|
45
|
+
}
|
|
46
|
+
return { type: 1, components: [structuredClone(menu)] };
|
|
47
|
+
}
|
|
48
|
+
export function disableComponents(rows) {
|
|
49
|
+
return rows.map((row) => ({
|
|
50
|
+
...row,
|
|
51
|
+
components: row.components.map((original) => {
|
|
52
|
+
const component = structuredClone(original);
|
|
53
|
+
if (component.type !== 2 || component.style !== 5)
|
|
54
|
+
component.disabled = true;
|
|
55
|
+
return component;
|
|
56
|
+
}),
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
export function modalRows(...inputs) {
|
|
60
|
+
if (!inputs.length || inputs.length > 5)
|
|
61
|
+
throw new RangeError('A modal needs one to five text inputs');
|
|
62
|
+
const ids = new Set();
|
|
63
|
+
return inputs.map((input) => {
|
|
64
|
+
checkId(input.custom_id);
|
|
65
|
+
const { min_length: min = 0, max_length: max = 4000 } = input;
|
|
66
|
+
if (input.type !== 4 || ![1, 2].includes(input.style) || !input.label || size(input.label) > 45 ||
|
|
67
|
+
size(input.placeholder) > 100 || size(input.value) > max || ids.has(input.custom_id) ||
|
|
68
|
+
!Number.isInteger(min) || !Number.isInteger(max) || min < 0 || max < 1 || max > 4000 || min > max) {
|
|
69
|
+
throw new TypeError('Invalid or duplicated Micup text input');
|
|
70
|
+
}
|
|
71
|
+
ids.add(input.custom_id);
|
|
72
|
+
return { type: 1, components: [structuredClone(input)] };
|
|
73
|
+
});
|
|
74
|
+
}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
export declare const AuditAction: {
|
|
2
|
+
readonly GuildUpdate: 1;
|
|
3
|
+
readonly ChannelCreate: 10;
|
|
4
|
+
readonly ChannelUpdate: 11;
|
|
5
|
+
readonly ChannelDelete: 12;
|
|
6
|
+
readonly ChannelOverwriteCreate: 13;
|
|
7
|
+
readonly ChannelOverwriteUpdate: 14;
|
|
8
|
+
readonly ChannelOverwriteDelete: 15;
|
|
9
|
+
readonly MemberKick: 20;
|
|
10
|
+
readonly MemberPrune: 21;
|
|
11
|
+
readonly MemberBanAdd: 22;
|
|
12
|
+
readonly MemberBanRemove: 23;
|
|
13
|
+
readonly MemberUpdate: 24;
|
|
14
|
+
readonly MemberRoleUpdate: 25;
|
|
15
|
+
readonly MemberMove: 26;
|
|
16
|
+
readonly MemberDisconnect: 27;
|
|
17
|
+
readonly BotAdd: 28;
|
|
18
|
+
readonly RoleCreate: 30;
|
|
19
|
+
readonly RoleUpdate: 31;
|
|
20
|
+
readonly RoleDelete: 32;
|
|
21
|
+
readonly InviteCreate: 40;
|
|
22
|
+
readonly InviteUpdate: 41;
|
|
23
|
+
readonly InviteDelete: 42;
|
|
24
|
+
readonly WebhookCreate: 50;
|
|
25
|
+
readonly WebhookUpdate: 51;
|
|
26
|
+
readonly WebhookDelete: 52;
|
|
27
|
+
readonly EmojiCreate: 60;
|
|
28
|
+
readonly EmojiUpdate: 61;
|
|
29
|
+
readonly EmojiDelete: 62;
|
|
30
|
+
readonly MessageDelete: 72;
|
|
31
|
+
readonly MessageBulkDelete: 73;
|
|
32
|
+
readonly MessagePin: 74;
|
|
33
|
+
readonly MessageUnpin: 75;
|
|
34
|
+
readonly StickerCreate: 90;
|
|
35
|
+
readonly StickerUpdate: 91;
|
|
36
|
+
readonly StickerDelete: 92;
|
|
37
|
+
readonly ThreadCreate: 110;
|
|
38
|
+
readonly ThreadUpdate: 111;
|
|
39
|
+
readonly ThreadDelete: 112;
|
|
40
|
+
};
|
|
41
|
+
export declare const ChannelType: {
|
|
42
|
+
readonly GuildText: 0;
|
|
43
|
+
readonly DM: 1;
|
|
44
|
+
readonly GuildVoice: 2;
|
|
45
|
+
readonly GroupDM: 3;
|
|
46
|
+
readonly GuildCategory: 4;
|
|
47
|
+
readonly GuildAnnouncement: 5;
|
|
48
|
+
readonly AnnouncementThread: 10;
|
|
49
|
+
readonly PublicThread: 11;
|
|
50
|
+
readonly PrivateThread: 12;
|
|
51
|
+
readonly GuildForum: 15;
|
|
52
|
+
readonly GuildMedia: 16;
|
|
53
|
+
readonly GuildLink: 998;
|
|
54
|
+
readonly PersonalNotes: 999;
|
|
55
|
+
};
|
|
56
|
+
export declare const ChannelFlag: {
|
|
57
|
+
readonly Pinned: number;
|
|
58
|
+
readonly RequireTag: number;
|
|
59
|
+
readonly HideMediaDownloadOptions: number;
|
|
60
|
+
};
|
|
61
|
+
export declare const AutoArchiveDuration: {
|
|
62
|
+
readonly Hour: 60;
|
|
63
|
+
readonly Day: 1440;
|
|
64
|
+
readonly ThreeDays: 4320;
|
|
65
|
+
readonly Week: 10080;
|
|
66
|
+
};
|
|
67
|
+
export declare const ForumSortOrder: {
|
|
68
|
+
readonly LatestActivity: 0;
|
|
69
|
+
readonly CreationTime: 1;
|
|
70
|
+
};
|
|
71
|
+
export declare const ForumLayout: {
|
|
72
|
+
readonly Default: 0;
|
|
73
|
+
readonly List: 1;
|
|
74
|
+
readonly Grid: 2;
|
|
75
|
+
};
|
|
76
|
+
export declare const ForumTagMatch: {
|
|
77
|
+
readonly Some: 'match_some';
|
|
78
|
+
readonly All: 'match_all';
|
|
79
|
+
};
|
|
80
|
+
export declare const ThreadMemberFlag: {
|
|
81
|
+
readonly HasInteracted: number;
|
|
82
|
+
readonly AllMessages: number;
|
|
83
|
+
readonly OnlyMentions: number;
|
|
84
|
+
readonly NoMessages: number;
|
|
85
|
+
};
|
|
86
|
+
export declare const VerificationLevel: {
|
|
87
|
+
readonly None: 0;
|
|
88
|
+
readonly Low: 1;
|
|
89
|
+
readonly Medium: 2;
|
|
90
|
+
readonly High: 3;
|
|
91
|
+
};
|
|
92
|
+
export declare const MfaLevel: {
|
|
93
|
+
readonly None: 0;
|
|
94
|
+
readonly Elevated: 1;
|
|
95
|
+
};
|
|
96
|
+
export declare const ExplicitContentFilter: {
|
|
97
|
+
readonly Disabled: 0;
|
|
98
|
+
readonly MembersWithoutRoles: 1;
|
|
99
|
+
readonly AllMembers: 2;
|
|
100
|
+
};
|
|
101
|
+
export declare const DefaultMessageNotifications: {
|
|
102
|
+
readonly AllMessages: 0;
|
|
103
|
+
readonly OnlyMentions: 1;
|
|
104
|
+
};
|
|
105
|
+
export declare const SystemChannelFlag: {
|
|
106
|
+
readonly SuppressJoinNotifications: number;
|
|
107
|
+
};
|
|
108
|
+
export declare const GuildFeature: {
|
|
109
|
+
readonly AnimatedBanner: 'ANIMATED_BANNER';
|
|
110
|
+
readonly AnimatedIcon: 'ANIMATED_ICON';
|
|
111
|
+
readonly Banner: 'BANNER';
|
|
112
|
+
readonly CloneEmojiEnabled: 'CLONE_EMOJI_ENABLED';
|
|
113
|
+
readonly CloneStickerEnabled: 'CLONE_STICKER_ENABLED';
|
|
114
|
+
readonly DetachedBanner: 'DETACHED_BANNER';
|
|
115
|
+
readonly Discoverable: 'DISCOVERABLE';
|
|
116
|
+
readonly ExpressionPurgeAllowed: 'EXPRESSION_PURGE_ALLOWED';
|
|
117
|
+
readonly HideOwnerCrown: 'HIDE_OWNER_CROWN';
|
|
118
|
+
readonly InviteSplash: 'INVITE_SPLASH';
|
|
119
|
+
readonly InvitesDisabled: 'INVITES_DISABLED';
|
|
120
|
+
readonly Partnered: 'PARTNERED';
|
|
121
|
+
readonly TextChannelFlexibleNames: 'TEXT_CHANNEL_FLEXIBLE_NAMES';
|
|
122
|
+
readonly VanityURL: 'VANITY_URL';
|
|
123
|
+
readonly Verified: 'VERIFIED';
|
|
124
|
+
readonly VisitsEnabled: 'VISITS_ENABLED';
|
|
125
|
+
readonly VoiceE2EE: 'VOICE_E2EE';
|
|
126
|
+
};
|
|
127
|
+
export declare const InviteType: {
|
|
128
|
+
readonly Guild: 0;
|
|
129
|
+
readonly GroupDM: 1;
|
|
130
|
+
};
|
|
131
|
+
export declare const MessageType: {
|
|
132
|
+
readonly Default: 0;
|
|
133
|
+
readonly RecipientAdd: 1;
|
|
134
|
+
readonly RecipientRemove: 2;
|
|
135
|
+
readonly Call: 3;
|
|
136
|
+
readonly ChannelNameChange: 4;
|
|
137
|
+
readonly ChannelIconChange: 5;
|
|
138
|
+
readonly ChannelPinnedMessage: 6;
|
|
139
|
+
readonly UserJoin: 7;
|
|
140
|
+
readonly ChannelFollowAdd: 12;
|
|
141
|
+
readonly ThreadCreated: 18;
|
|
142
|
+
readonly Reply: 19;
|
|
143
|
+
readonly ThreadStarterMessage: 21;
|
|
144
|
+
};
|
|
145
|
+
export declare const AttachmentFlag: {
|
|
146
|
+
readonly Spoiler: number;
|
|
147
|
+
readonly ExplicitMedia: number;
|
|
148
|
+
readonly Animated: number;
|
|
149
|
+
};
|
|
150
|
+
export declare const MessageReferenceType: {
|
|
151
|
+
readonly Default: 0;
|
|
152
|
+
readonly Forward: 1;
|
|
153
|
+
};
|
|
154
|
+
export declare const AllowedMentionType: {
|
|
155
|
+
readonly Users: 'users';
|
|
156
|
+
readonly Roles: 'roles';
|
|
157
|
+
readonly Everyone: 'everyone';
|
|
158
|
+
};
|
|
159
|
+
export declare const SearchAuthorType: {
|
|
160
|
+
readonly User: 'user';
|
|
161
|
+
readonly Bot: 'bot';
|
|
162
|
+
readonly Webhook: 'webhook';
|
|
163
|
+
};
|
|
164
|
+
export declare const SearchHas: {
|
|
165
|
+
readonly Image: 'image';
|
|
166
|
+
readonly Sound: 'sound';
|
|
167
|
+
readonly Video: 'video';
|
|
168
|
+
readonly File: 'file';
|
|
169
|
+
readonly Sticker: 'sticker';
|
|
170
|
+
readonly Embed: 'embed';
|
|
171
|
+
readonly Link: 'link';
|
|
172
|
+
readonly Snapshot: 'snapshot';
|
|
173
|
+
};
|
|
174
|
+
export declare const SearchSort: {
|
|
175
|
+
readonly Timestamp: 'timestamp';
|
|
176
|
+
readonly Relevance: 'relevance';
|
|
177
|
+
};
|
|
178
|
+
export declare const SortOrder: {
|
|
179
|
+
readonly Ascending: 'asc';
|
|
180
|
+
readonly Descending: 'desc';
|
|
181
|
+
};
|
|
182
|
+
export declare const EmbedType: {
|
|
183
|
+
readonly Rich: 'rich';
|
|
184
|
+
};
|
|
185
|
+
export declare const ImageFormat: {
|
|
186
|
+
readonly PNG: 'png';
|
|
187
|
+
readonly JPEG: 'jpg';
|
|
188
|
+
readonly WebP: 'webp';
|
|
189
|
+
readonly GIF: 'gif';
|
|
190
|
+
readonly AVIF: 'avif';
|
|
191
|
+
};
|
|
192
|
+
export declare const MemberProfileFlag: {
|
|
193
|
+
readonly AvatarUnset: number;
|
|
194
|
+
readonly BannerUnset: number;
|
|
195
|
+
};
|
|
196
|
+
export declare const MentionPreference: {
|
|
197
|
+
readonly NoPreference: 0;
|
|
198
|
+
readonly PreferMention: 1;
|
|
199
|
+
readonly PreferNoMention: 2;
|
|
200
|
+
};
|
|
201
|
+
export declare const JoinSource: {
|
|
202
|
+
readonly Creator: 0;
|
|
203
|
+
readonly InstantInvite: 1;
|
|
204
|
+
readonly VanityURL: 2;
|
|
205
|
+
readonly BotInvite: 3;
|
|
206
|
+
readonly AdminForceAdd: 4;
|
|
207
|
+
readonly Discovery: 6;
|
|
208
|
+
};
|
|
209
|
+
export declare const UserFlag: {
|
|
210
|
+
readonly Staff: number;
|
|
211
|
+
readonly Partner: number;
|
|
212
|
+
readonly BugHunter: number;
|
|
213
|
+
readonly FriendlyBot: number;
|
|
214
|
+
readonly FriendlyBotManualApproval: number;
|
|
215
|
+
readonly Spammer: number;
|
|
216
|
+
readonly ProfileHidden: number;
|
|
217
|
+
};
|
|
218
|
+
export declare const WebhookType: {
|
|
219
|
+
readonly Incoming: 1;
|
|
220
|
+
readonly ChannelFollower: 2;
|
|
221
|
+
};
|
|
222
|
+
export declare const SelectDefaultType: {
|
|
223
|
+
readonly User: 'user';
|
|
224
|
+
readonly Role: 'role';
|
|
225
|
+
readonly Channel: 'channel';
|
|
226
|
+
};
|
|
227
|
+
export declare const InteractionContextType: {
|
|
228
|
+
readonly Guild: 0;
|
|
229
|
+
readonly BotDM: 1;
|
|
230
|
+
readonly PrivateChannel: 2;
|
|
231
|
+
};
|
|
232
|
+
export declare const Status: {
|
|
233
|
+
readonly Online: 'online';
|
|
234
|
+
readonly Idle: 'idle';
|
|
235
|
+
readonly DND: 'dnd';
|
|
236
|
+
readonly Invisible: 'invisible';
|
|
237
|
+
readonly Offline: 'offline';
|
|
238
|
+
};
|
|
239
|
+
export declare const RelationshipType: {
|
|
240
|
+
readonly Friend: 1;
|
|
241
|
+
readonly Blocked: 2;
|
|
242
|
+
readonly IncomingRequest: 3;
|
|
243
|
+
readonly OutgoingRequest: 4;
|
|
244
|
+
};
|
|
245
|
+
export declare const GatewayFlag: {
|
|
246
|
+
readonly DebounceMessageReactions: number;
|
|
247
|
+
readonly ChannelThreads: number;
|
|
248
|
+
readonly GuildVisits: number;
|
|
249
|
+
};
|
|
250
|
+
export declare const GatewayCloseCode: {
|
|
251
|
+
readonly UnknownError: 4000;
|
|
252
|
+
readonly UnknownOpcode: 4001;
|
|
253
|
+
readonly DecodeError: 4002;
|
|
254
|
+
readonly NotAuthenticated: 4003;
|
|
255
|
+
readonly AuthenticationFailed: 4004;
|
|
256
|
+
readonly AlreadyAuthenticated: 4005;
|
|
257
|
+
readonly InvalidSequence: 4007;
|
|
258
|
+
readonly RateLimited: 4008;
|
|
259
|
+
readonly SessionTimeout: 4009;
|
|
260
|
+
readonly InvalidShard: 4010;
|
|
261
|
+
readonly ShardingRequired: 4011;
|
|
262
|
+
readonly InvalidAPIVersion: 4012;
|
|
263
|
+
};
|
|
264
|
+
export declare const VoiceRefusalCode: {
|
|
265
|
+
readonly ChannelFull: 'VOICE_CHANNEL_FULL';
|
|
266
|
+
readonly P2PConsentRequired: 'VOICE_P2P_CONSENT_REQUIRED';
|
|
267
|
+
readonly P2PUnavailable: 'VOICE_P2P_UNAVAILABLE';
|
|
268
|
+
};
|
|
269
|
+
export declare const OverwriteType: {
|
|
270
|
+
readonly Role: 0;
|
|
271
|
+
readonly Member: 1;
|
|
272
|
+
};
|
|
273
|
+
export declare const Limits: {
|
|
274
|
+
readonly GuildsPerShard: 2500;
|
|
275
|
+
readonly AuditLogEntries: 100;
|
|
276
|
+
readonly ChannelName: 100;
|
|
277
|
+
readonly ChannelTopic: 1024;
|
|
278
|
+
readonly ForumTopic: 4096;
|
|
279
|
+
readonly SlowmodeSeconds: 21600;
|
|
280
|
+
readonly ForumTags: 20;
|
|
281
|
+
readonly AppliedTags: 5;
|
|
282
|
+
readonly ForumTagName: 50;
|
|
283
|
+
readonly ChannelPositions: 500;
|
|
284
|
+
readonly CommandOptions: 25;
|
|
285
|
+
readonly CommandChoices: 25;
|
|
286
|
+
readonly CommandName: 32;
|
|
287
|
+
readonly CommandDescription: 100;
|
|
288
|
+
readonly ActionRows: 5;
|
|
289
|
+
readonly ButtonsPerRow: 5;
|
|
290
|
+
readonly CustomIDLength: 100;
|
|
291
|
+
readonly ButtonLabelLength: 80;
|
|
292
|
+
readonly EmbedTitle: 256;
|
|
293
|
+
readonly EmbedDescription: 4096;
|
|
294
|
+
readonly EmbedFields: 25;
|
|
295
|
+
readonly EmbedFieldName: 256;
|
|
296
|
+
readonly EmbedFieldValue: 1024;
|
|
297
|
+
readonly EmbedFooter: 2048;
|
|
298
|
+
readonly EmbedAuthor: 256;
|
|
299
|
+
readonly EmbedURL: 2048;
|
|
300
|
+
readonly InviteUses: 100;
|
|
301
|
+
readonly InviteAge: 604800;
|
|
302
|
+
readonly BulkExpressions: 50;
|
|
303
|
+
readonly EmojiName: 32;
|
|
304
|
+
readonly StickerName: 30;
|
|
305
|
+
readonly Embeds: 10;
|
|
306
|
+
readonly Attachments: 10;
|
|
307
|
+
readonly BulkDelete: 100;
|
|
308
|
+
readonly MessagesPerPage: 100;
|
|
309
|
+
readonly StickersPerMessage: 3;
|
|
310
|
+
readonly ReactionUsersPerPage: 100;
|
|
311
|
+
readonly PinsPerPage: 50;
|
|
312
|
+
readonly RefreshURLs: 50;
|
|
313
|
+
readonly SearchHitsPerPage: 25;
|
|
314
|
+
readonly SearchPage: 400;
|
|
315
|
+
readonly ModalInputs: 5;
|
|
316
|
+
readonly ModalTitle: 45;
|
|
317
|
+
readonly TextInputLabel: 45;
|
|
318
|
+
readonly TextInputLength: 4000;
|
|
319
|
+
readonly TextInputPrompts: 100;
|
|
320
|
+
readonly CustomStatusText: 128;
|
|
321
|
+
readonly CustomStatusEmoji: 32;
|
|
322
|
+
readonly RoleName: 100;
|
|
323
|
+
readonly RoleColor: 16777215;
|
|
324
|
+
readonly SelectOptions: 25;
|
|
325
|
+
readonly SelectPlaceholder: 150;
|
|
326
|
+
readonly SelectOptionLabel: 100;
|
|
327
|
+
readonly SelectOptionValue: 100;
|
|
328
|
+
readonly SelectOptionDescription: 100;
|
|
329
|
+
readonly WebhookName: 80;
|
|
330
|
+
};
|