disgroove 0.0.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/dist/class/Client.d.ts +306 -0
- package/dist/class/Client.js +771 -0
- package/dist/class/Client.js.map +1 -0
- package/dist/class/index.d.ts +1 -0
- package/dist/class/index.js +18 -0
- package/dist/class/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/rest/Endpoints.d.ts +97 -0
- package/dist/rest/Endpoints.js +205 -0
- package/dist/rest/Endpoints.js.map +1 -0
- package/dist/rest/REST.d.ts +16 -0
- package/dist/rest/REST.js +55 -0
- package/dist/rest/REST.js.map +1 -0
- package/dist/rest/index.d.ts +2 -0
- package/dist/rest/index.js +32 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/structures/Application.d.ts +250 -0
- package/dist/structures/Application.js +258 -0
- package/dist/structures/Application.js.map +1 -0
- package/dist/structures/ApplicationCommand.d.ts +68 -0
- package/dist/structures/ApplicationCommand.js +133 -0
- package/dist/structures/ApplicationCommand.js.map +1 -0
- package/dist/structures/AuditLogEntry.d.ts +16 -0
- package/dist/structures/AuditLogEntry.js +54 -0
- package/dist/structures/AuditLogEntry.js.map +1 -0
- package/dist/structures/AutoModerationRule.d.ts +29 -0
- package/dist/structures/AutoModerationRule.js +85 -0
- package/dist/structures/AutoModerationRule.js.map +1 -0
- package/dist/structures/Channel.d.ts +296 -0
- package/dist/structures/Channel.js +579 -0
- package/dist/structures/Channel.js.map +1 -0
- package/dist/structures/Guild.d.ts +452 -0
- package/dist/structures/Guild.js +1161 -0
- package/dist/structures/Guild.js.map +1 -0
- package/dist/structures/GuildMember.d.ts +46 -0
- package/dist/structures/GuildMember.js +126 -0
- package/dist/structures/GuildMember.js.map +1 -0
- package/dist/structures/GuildScheduledEvent.d.ts +45 -0
- package/dist/structures/GuildScheduledEvent.js +115 -0
- package/dist/structures/GuildScheduledEvent.js.map +1 -0
- package/dist/structures/GuildTemplate.d.ts +25 -0
- package/dist/structures/GuildTemplate.js +80 -0
- package/dist/structures/GuildTemplate.js.map +1 -0
- package/dist/structures/Integration.d.ts +28 -0
- package/dist/structures/Integration.js +96 -0
- package/dist/structures/Integration.js.map +1 -0
- package/dist/structures/Interaction.d.ts +204 -0
- package/dist/structures/Interaction.js +368 -0
- package/dist/structures/Interaction.js.map +1 -0
- package/dist/structures/Invite.d.ts +22 -0
- package/dist/structures/Invite.js +108 -0
- package/dist/structures/Invite.js.map +1 -0
- package/dist/structures/Message.d.ts +97 -0
- package/dist/structures/Message.js +327 -0
- package/dist/structures/Message.js.map +1 -0
- package/dist/structures/Role.d.ts +35 -0
- package/dist/structures/Role.js +81 -0
- package/dist/structures/Role.js.map +1 -0
- package/dist/structures/StageInstance.d.ts +20 -0
- package/dist/structures/StageInstance.js +53 -0
- package/dist/structures/StageInstance.js.map +1 -0
- package/dist/structures/User.d.ts +53 -0
- package/dist/structures/User.js +168 -0
- package/dist/structures/User.js.map +1 -0
- package/dist/structures/Webhook.d.ts +133 -0
- package/dist/structures/Webhook.js +189 -0
- package/dist/structures/Webhook.js.map +1 -0
- package/dist/structures/index.d.ts +17 -0
- package/dist/structures/index.js +34 -0
- package/dist/structures/index.js.map +1 -0
- package/dist/types/application-command.d.ts +97 -0
- package/dist/types/application-command.js +3 -0
- package/dist/types/application-command.js.map +1 -0
- package/dist/types/application-role-connection-metadata.d.ts +17 -0
- package/dist/types/application-role-connection-metadata.js +3 -0
- package/dist/types/application-role-connection-metadata.js.map +1 -0
- package/dist/types/application.d.ts +55 -0
- package/dist/types/application.js +3 -0
- package/dist/types/application.js.map +1 -0
- package/dist/types/audit-log.d.ts +77 -0
- package/dist/types/audit-log.js +3 -0
- package/dist/types/audit-log.js.map +1 -0
- package/dist/types/auto-moderation.d.ts +61 -0
- package/dist/types/auto-moderation.js +3 -0
- package/dist/types/auto-moderation.js.map +1 -0
- package/dist/types/channel.d.ts +411 -0
- package/dist/types/channel.js +3 -0
- package/dist/types/channel.js.map +1 -0
- package/dist/types/emoji.d.ts +22 -0
- package/dist/types/emoji.js +3 -0
- package/dist/types/emoji.js.map +1 -0
- package/dist/types/gateway-events.d.ts +53 -0
- package/dist/types/gateway-events.js +3 -0
- package/dist/types/gateway-events.js.map +1 -0
- package/dist/types/guild-scheduled-event.d.ts +55 -0
- package/dist/types/guild-scheduled-event.js +3 -0
- package/dist/types/guild-scheduled-event.js.map +1 -0
- package/dist/types/guild-template.d.ts +28 -0
- package/dist/types/guild-template.js +3 -0
- package/dist/types/guild-template.js.map +1 -0
- package/dist/types/guild.d.ts +305 -0
- package/dist/types/guild.js +3 -0
- package/dist/types/guild.js.map +1 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.js +39 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interaction.d.ts +141 -0
- package/dist/types/interaction.js +3 -0
- package/dist/types/interaction.js.map +1 -0
- package/dist/types/invite.d.ts +56 -0
- package/dist/types/invite.js +3 -0
- package/dist/types/invite.js.map +1 -0
- package/dist/types/message-components.d.ts +76 -0
- package/dist/types/message-components.js +3 -0
- package/dist/types/message-components.js.map +1 -0
- package/dist/types/oauth2.d.ts +14 -0
- package/dist/types/oauth2.js +3 -0
- package/dist/types/oauth2.js.map +1 -0
- package/dist/types/role.d.ts +42 -0
- package/dist/types/role.js +3 -0
- package/dist/types/role.js.map +1 -0
- package/dist/types/stage-instance.d.ts +18 -0
- package/dist/types/stage-instance.js +3 -0
- package/dist/types/stage-instance.js.map +1 -0
- package/dist/types/sticker.d.ts +59 -0
- package/dist/types/sticker.js +3 -0
- package/dist/types/sticker.js.map +1 -0
- package/dist/types/team.d.ts +28 -0
- package/dist/types/team.js +3 -0
- package/dist/types/team.js.map +1 -0
- package/dist/types/user.d.ts +73 -0
- package/dist/types/user.js +3 -0
- package/dist/types/user.js.map +1 -0
- package/dist/types/voice.d.ts +46 -0
- package/dist/types/voice.js +3 -0
- package/dist/types/voice.js.map +1 -0
- package/dist/types/webhook.d.ts +31 -0
- package/dist/types/webhook.js +3 -0
- package/dist/types/webhook.js.map +1 -0
- package/dist/utils/constants.d.ts +963 -0
- package/dist/utils/constants.js +1147 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/rawers.d.ts +467 -0
- package/dist/utils/rawers.js +295 -0
- package/dist/utils/rawers.js.map +1 -0
- package/package.json +27 -0
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { ApplicationCommand, AutoModerationRule, Channel, GuildMember, GuildScheduledEvent, GuildTemplate, Integration, Invite, Role, User, Webhook } from ".";
|
|
2
|
+
import type { Client } from "../class";
|
|
3
|
+
import { File } from "../rest";
|
|
4
|
+
import type { JSONAuditLog, JSONAutoModerationAction, JSONBan, JSONDefaultReaction, JSONEmoji, JSONForumTag, JSONGuild, JSONGuildApplicationCommandPermissions, JSONGuildOnboarding, JSONGuildPreview, JSONGuildScheduledEventEntityMetadata, JSONGuildTemplate, JSONGuildWidget, JSONGuildWidgetSettings, JSONOnboardingPrompt, JSONOverwrite, JSONSticker, JSONThreadMember, JSONVoiceRegion, JSONWelcomeScreen, JSONWelcomeScreenChannel, RawGuild } from "../types";
|
|
5
|
+
import { ApplicationCommandOptionType, ApplicationCommandTypes, ChannelTypes, DefaultMessageNotificationLevel, ExplicitContentFilterLevel, GuildFeatures, GuildMemberFlags, GuildNSFWLevel, GuildScheduledEventEntityTypes, GuildScheduledEventPrivacyLevel, GuildScheduledEventStatus, ImageWidgetStyleOptions, Locale, MFALevel, OnboardingMode, PremiumTier, SystemChannelFlags, VerificationLevel } from "../utils";
|
|
6
|
+
export declare class Guild {
|
|
7
|
+
private client;
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
icon: string | null;
|
|
11
|
+
iconHash?: string | null;
|
|
12
|
+
splash: string | null;
|
|
13
|
+
discoverySplash: string | null;
|
|
14
|
+
owner?: boolean;
|
|
15
|
+
ownerId: string;
|
|
16
|
+
permissions?: string;
|
|
17
|
+
region?: string | null;
|
|
18
|
+
afkChannelId: string | null;
|
|
19
|
+
afkTimeout: number;
|
|
20
|
+
widgetEnabled?: boolean;
|
|
21
|
+
widgetChannelId?: string | null;
|
|
22
|
+
verificationLevel: VerificationLevel;
|
|
23
|
+
defaultMessageNotifications: DefaultMessageNotificationLevel;
|
|
24
|
+
explicitContentFilter: ExplicitContentFilterLevel;
|
|
25
|
+
roles: Array<Role>;
|
|
26
|
+
emojis: Array<JSONEmoji>;
|
|
27
|
+
features: Array<GuildFeatures>;
|
|
28
|
+
mfaLevel: MFALevel;
|
|
29
|
+
applicationId: string | null;
|
|
30
|
+
systemChannelId: string | null;
|
|
31
|
+
systemChannelFlags: number;
|
|
32
|
+
rulesChannelId: string | null;
|
|
33
|
+
maxPresences?: number | null;
|
|
34
|
+
maxMembers?: number;
|
|
35
|
+
vanityURLCode: string | null;
|
|
36
|
+
description: string | null;
|
|
37
|
+
banner: string | null;
|
|
38
|
+
premiumTier: PremiumTier;
|
|
39
|
+
premiumSubscriptionCount?: number;
|
|
40
|
+
preferredLocale: string;
|
|
41
|
+
publicUpdatesChannelId: string | null;
|
|
42
|
+
maxVideoChannelUsers?: number;
|
|
43
|
+
approximateMemberCount?: number;
|
|
44
|
+
approximatePresenceCount?: number;
|
|
45
|
+
welcomeScreen?: JSONWelcomeScreen;
|
|
46
|
+
nsfwLevel: GuildNSFWLevel;
|
|
47
|
+
stickers?: Array<JSONSticker>;
|
|
48
|
+
premiumProgressBarEnabled: boolean;
|
|
49
|
+
safetyAlertsChannelId: string | null;
|
|
50
|
+
constructor(data: RawGuild, client: Client);
|
|
51
|
+
protected update(data: RawGuild): void;
|
|
52
|
+
getApplicationCommands(applicationId: string, options?: {
|
|
53
|
+
withLocalizations?: boolean;
|
|
54
|
+
}): Promise<Array<ApplicationCommand>>;
|
|
55
|
+
createApplicationCommand(applicationId: string, options: {
|
|
56
|
+
name?: string;
|
|
57
|
+
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
|
58
|
+
description?: string;
|
|
59
|
+
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
|
60
|
+
options?: Array<{
|
|
61
|
+
type: ApplicationCommandOptionType;
|
|
62
|
+
name: string;
|
|
63
|
+
nameLocalizations?: Partial<Record<Locale, string>>;
|
|
64
|
+
description: string;
|
|
65
|
+
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
|
66
|
+
required?: boolean;
|
|
67
|
+
choices?: Array<string>;
|
|
68
|
+
options: Array<{
|
|
69
|
+
type: ApplicationCommandOptionType;
|
|
70
|
+
name: string;
|
|
71
|
+
nameLocalizations?: Partial<Record<Locale, string>>;
|
|
72
|
+
description: string;
|
|
73
|
+
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
|
74
|
+
required?: boolean;
|
|
75
|
+
choices?: Array<string>;
|
|
76
|
+
channelTypes?: ChannelTypes;
|
|
77
|
+
minValue?: number;
|
|
78
|
+
maxValue?: number;
|
|
79
|
+
minLength?: number;
|
|
80
|
+
maxLength?: number;
|
|
81
|
+
autocomplete?: boolean;
|
|
82
|
+
}>;
|
|
83
|
+
channelTypes?: ChannelTypes;
|
|
84
|
+
minValue?: number;
|
|
85
|
+
maxValue?: number;
|
|
86
|
+
minLength?: number;
|
|
87
|
+
maxLength?: number;
|
|
88
|
+
autocomplete?: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
defaultMemberPermissions?: string | null;
|
|
91
|
+
dmPermission?: boolean;
|
|
92
|
+
defaultPermission?: boolean | null;
|
|
93
|
+
type?: ApplicationCommandTypes;
|
|
94
|
+
nsfw?: boolean;
|
|
95
|
+
}): Promise<ApplicationCommand>;
|
|
96
|
+
getApplicationCommand(applicationId: string, commandId: string): Promise<ApplicationCommand>;
|
|
97
|
+
editApplicationCommand(applicationId: string, commandId: string, options: {
|
|
98
|
+
name?: string;
|
|
99
|
+
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
|
100
|
+
description?: string;
|
|
101
|
+
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
|
102
|
+
options?: Array<{
|
|
103
|
+
type: ApplicationCommandOptionType;
|
|
104
|
+
name: string;
|
|
105
|
+
nameLocalizations?: Partial<Record<Locale, string>>;
|
|
106
|
+
description: string;
|
|
107
|
+
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
|
108
|
+
required?: boolean;
|
|
109
|
+
choices?: Array<string>;
|
|
110
|
+
options: Array<{
|
|
111
|
+
type: ApplicationCommandOptionType;
|
|
112
|
+
name: string;
|
|
113
|
+
nameLocalizations?: Partial<Record<Locale, string>>;
|
|
114
|
+
description: string;
|
|
115
|
+
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
|
116
|
+
required?: boolean;
|
|
117
|
+
choices?: Array<string>;
|
|
118
|
+
channelTypes?: ChannelTypes;
|
|
119
|
+
minValue?: number;
|
|
120
|
+
maxValue?: number;
|
|
121
|
+
minLength?: number;
|
|
122
|
+
maxLength?: number;
|
|
123
|
+
autocomplete?: boolean;
|
|
124
|
+
}>;
|
|
125
|
+
channelTypes?: ChannelTypes;
|
|
126
|
+
minValue?: number;
|
|
127
|
+
maxValue?: number;
|
|
128
|
+
minLength?: number;
|
|
129
|
+
maxLength?: number;
|
|
130
|
+
autocomplete?: boolean;
|
|
131
|
+
}>;
|
|
132
|
+
defaultMemberPermissions?: string | null;
|
|
133
|
+
defaultPermission?: boolean | null;
|
|
134
|
+
dmPermission?: boolean;
|
|
135
|
+
nsfw?: boolean;
|
|
136
|
+
}): Promise<ApplicationCommand>;
|
|
137
|
+
deleteApplicationCommand(applicationId: string, commandId: string): Promise<void>;
|
|
138
|
+
bulkOverwriteGuildApplicationCommands(applicationId: string, options: {
|
|
139
|
+
id?: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
nameLocalizations?: Partial<Record<Locale, string>> | null;
|
|
142
|
+
description?: string;
|
|
143
|
+
descriptionLocalizations?: Partial<Record<Locale, string>> | null;
|
|
144
|
+
options?: Array<{
|
|
145
|
+
type: ApplicationCommandOptionType;
|
|
146
|
+
name: string;
|
|
147
|
+
nameLocalizations?: Partial<Record<Locale, string>>;
|
|
148
|
+
description: string;
|
|
149
|
+
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
|
150
|
+
required?: boolean;
|
|
151
|
+
choices?: Array<string>;
|
|
152
|
+
options: Array<{
|
|
153
|
+
type: ApplicationCommandOptionType;
|
|
154
|
+
name: string;
|
|
155
|
+
nameLocalizations?: Partial<Record<Locale, string>>;
|
|
156
|
+
description: string;
|
|
157
|
+
descriptionLocalizations?: Partial<Record<Locale, string>>;
|
|
158
|
+
required?: boolean;
|
|
159
|
+
choices?: Array<string>;
|
|
160
|
+
channelTypes?: ChannelTypes;
|
|
161
|
+
minValue?: number;
|
|
162
|
+
maxValue?: number;
|
|
163
|
+
minLength?: number;
|
|
164
|
+
maxLength?: number;
|
|
165
|
+
autocomplete?: boolean;
|
|
166
|
+
}>;
|
|
167
|
+
channelTypes?: ChannelTypes;
|
|
168
|
+
minValue?: number;
|
|
169
|
+
maxValue?: number;
|
|
170
|
+
minLength?: number;
|
|
171
|
+
maxLength?: number;
|
|
172
|
+
autocomplete?: boolean;
|
|
173
|
+
}>;
|
|
174
|
+
defaultMemberPermissions?: string | null;
|
|
175
|
+
dmPermission?: boolean;
|
|
176
|
+
defaultPermission?: boolean | null;
|
|
177
|
+
type: ApplicationCommandTypes;
|
|
178
|
+
nsfw?: boolean;
|
|
179
|
+
}): Promise<Array<ApplicationCommand>>;
|
|
180
|
+
getApplicationCommandPermissions(guildId: string): Promise<Array<JSONGuildApplicationCommandPermissions>>;
|
|
181
|
+
getAuditLog(options?: {
|
|
182
|
+
userId?: string;
|
|
183
|
+
actionType?: number;
|
|
184
|
+
before?: string;
|
|
185
|
+
after?: string;
|
|
186
|
+
limit?: number;
|
|
187
|
+
}): Promise<Array<JSONAuditLog>>;
|
|
188
|
+
listAutoModerationRules(): Promise<Array<AutoModerationRule>>;
|
|
189
|
+
getAutoModerationRule(ruleId: string): Promise<AutoModerationRule>;
|
|
190
|
+
createAutoModerationRule(options: {
|
|
191
|
+
name: string;
|
|
192
|
+
eventType: number;
|
|
193
|
+
triggerType: number;
|
|
194
|
+
triggerMetadata?: object;
|
|
195
|
+
actions: Array<JSONAutoModerationAction>;
|
|
196
|
+
enabled?: boolean;
|
|
197
|
+
exemptRoles?: Array<string>;
|
|
198
|
+
exemptChannels?: Array<string>;
|
|
199
|
+
}, reason?: string): Promise<AutoModerationRule>;
|
|
200
|
+
modifyAutoModerationRule(ruleId: string, options: {
|
|
201
|
+
name?: string;
|
|
202
|
+
eventType?: number;
|
|
203
|
+
triggerType?: number;
|
|
204
|
+
triggerMetadata?: object;
|
|
205
|
+
actions?: Array<JSONAutoModerationAction>;
|
|
206
|
+
enabled?: boolean;
|
|
207
|
+
exemptRoles?: Array<string>;
|
|
208
|
+
exemptChannels?: Array<string>;
|
|
209
|
+
}, reason?: string): Promise<AutoModerationRule>;
|
|
210
|
+
deleteAutoModerationRule(ruleId: string, reason?: string): Promise<void>;
|
|
211
|
+
listGuildEmojis(): Promise<Array<JSONEmoji>>;
|
|
212
|
+
getEmoji(emojiId: string): Promise<JSONEmoji>;
|
|
213
|
+
createEmoji(options: {
|
|
214
|
+
name: string;
|
|
215
|
+
image: string;
|
|
216
|
+
roles: Array<string>;
|
|
217
|
+
}, reason?: string): Promise<JSONEmoji>;
|
|
218
|
+
modifyEmoji(emojiId: string, options: {
|
|
219
|
+
name?: string;
|
|
220
|
+
roles?: Array<string> | null;
|
|
221
|
+
}, reason?: string): Promise<JSONEmoji>;
|
|
222
|
+
deleteEmoji(emojiId: string, reason?: string): Promise<void>;
|
|
223
|
+
getPreview(): Promise<JSONGuildPreview>;
|
|
224
|
+
modify(options: {
|
|
225
|
+
name?: string;
|
|
226
|
+
region?: string | null;
|
|
227
|
+
verificationLevel?: VerificationLevel;
|
|
228
|
+
defaultMessageNotifications?: DefaultMessageNotificationLevel;
|
|
229
|
+
explicitContentFilter?: ExplicitContentFilterLevel;
|
|
230
|
+
afkChannelId?: string | null;
|
|
231
|
+
afkTimeout?: number;
|
|
232
|
+
icon?: string | null;
|
|
233
|
+
ownerId?: string;
|
|
234
|
+
splash?: string | null;
|
|
235
|
+
discoverySplash?: string | null;
|
|
236
|
+
banner?: string | null;
|
|
237
|
+
systemChannelId?: string | null;
|
|
238
|
+
systemChannelFlags?: SystemChannelFlags;
|
|
239
|
+
rulesChannelId?: string | null;
|
|
240
|
+
publicUpdatesChannelId?: string | null;
|
|
241
|
+
preferredLocale?: string;
|
|
242
|
+
features?: Array<GuildFeatures>;
|
|
243
|
+
description?: string | null;
|
|
244
|
+
premiumProgressBarEnabled?: boolean;
|
|
245
|
+
safetyAlertsChannelId?: string | null;
|
|
246
|
+
}, reason?: string): Promise<Guild>;
|
|
247
|
+
delete(): Promise<void>;
|
|
248
|
+
getChannels(): Promise<Array<Channel>>;
|
|
249
|
+
createChannel(options: {
|
|
250
|
+
name: string | null;
|
|
251
|
+
type?: ChannelTypes;
|
|
252
|
+
topic?: string | null;
|
|
253
|
+
bitrate?: number;
|
|
254
|
+
userLimit?: number;
|
|
255
|
+
rateLimitPerUser?: number;
|
|
256
|
+
position?: number;
|
|
257
|
+
permissionOverwrites?: Array<JSONOverwrite>;
|
|
258
|
+
parentId?: string | null;
|
|
259
|
+
nsfw?: boolean;
|
|
260
|
+
rtcRegion?: string | null;
|
|
261
|
+
videoQualityMode?: number;
|
|
262
|
+
defaultAutoArchiveDuration?: number;
|
|
263
|
+
defaultReactionEmoji?: JSONDefaultReaction | null;
|
|
264
|
+
availableTags?: Array<JSONForumTag>;
|
|
265
|
+
defaultSortOrder?: number | null;
|
|
266
|
+
defaultForumLayout?: number;
|
|
267
|
+
}, reason?: string): Promise<Channel>;
|
|
268
|
+
modifyChannelPositions(options: Array<{
|
|
269
|
+
id: string;
|
|
270
|
+
position: number | null;
|
|
271
|
+
lockPermissions: boolean | null;
|
|
272
|
+
parentId: string | null;
|
|
273
|
+
}>): Promise<void>;
|
|
274
|
+
listActiveGuildThreads(): Promise<Array<{
|
|
275
|
+
threads: Array<Channel>;
|
|
276
|
+
members: Array<JSONThreadMember>;
|
|
277
|
+
}>>;
|
|
278
|
+
getMember(userId: string): Promise<GuildMember>;
|
|
279
|
+
listGuildMembers(): Promise<Array<GuildMember>>;
|
|
280
|
+
searchGuildMembers(options: {
|
|
281
|
+
query: string;
|
|
282
|
+
limit?: number;
|
|
283
|
+
}): Promise<Array<GuildMember>>;
|
|
284
|
+
addGuildMember(userId: string, options: {
|
|
285
|
+
accessToken: string;
|
|
286
|
+
nick?: string;
|
|
287
|
+
roles?: Array<string>;
|
|
288
|
+
mute?: boolean;
|
|
289
|
+
deaf?: boolean;
|
|
290
|
+
}): Promise<void>;
|
|
291
|
+
modifyMember(userId: string, options: {
|
|
292
|
+
nick?: string | null;
|
|
293
|
+
roles?: Array<string> | null;
|
|
294
|
+
mute?: boolean | null;
|
|
295
|
+
deaf?: boolean | null;
|
|
296
|
+
channelId?: string | null;
|
|
297
|
+
communicationDisabledUntil?: number | null;
|
|
298
|
+
flags?: GuildMemberFlags;
|
|
299
|
+
}, reason?: string): Promise<void>;
|
|
300
|
+
modifyCurrentMember(options: {
|
|
301
|
+
nick: string | null;
|
|
302
|
+
}, reason?: string): Promise<void>;
|
|
303
|
+
addGuildMemberRole(userId: string, roleId: string, reason?: string): Promise<void>;
|
|
304
|
+
removeMemberRole(userId: string, roleId: string, reason?: string): Promise<void>;
|
|
305
|
+
removeMember(userId: string, reason?: string): Promise<void>;
|
|
306
|
+
getBans(options?: {
|
|
307
|
+
limit?: number;
|
|
308
|
+
before?: string;
|
|
309
|
+
after?: string;
|
|
310
|
+
}): Promise<Array<JSONBan>>;
|
|
311
|
+
getBan(userId: string): Promise<JSONBan>;
|
|
312
|
+
createBan(userId: string, options?: {
|
|
313
|
+
deleteMessageDays?: number;
|
|
314
|
+
deleteMessageSeconds?: number;
|
|
315
|
+
}, reason?: string): Promise<void>;
|
|
316
|
+
removeBan(userId: string, reason?: string): Promise<void>;
|
|
317
|
+
getRoles(): Promise<Array<Role>>;
|
|
318
|
+
createRole(options: {
|
|
319
|
+
name: string;
|
|
320
|
+
permissions: string;
|
|
321
|
+
color: number;
|
|
322
|
+
hoist: boolean;
|
|
323
|
+
icon: string | null;
|
|
324
|
+
unicodeEmoji: string | null;
|
|
325
|
+
mentionable: boolean;
|
|
326
|
+
}, reason?: string): Promise<Role>;
|
|
327
|
+
modifyRolePositions(options: Array<{
|
|
328
|
+
id: string;
|
|
329
|
+
position?: number | null;
|
|
330
|
+
}>): Promise<Array<Role>>;
|
|
331
|
+
modifyRole(roleId: string, options: {
|
|
332
|
+
name?: string | null;
|
|
333
|
+
permissions?: string | null;
|
|
334
|
+
color?: number | null;
|
|
335
|
+
hoist?: boolean | null;
|
|
336
|
+
icon?: string | null;
|
|
337
|
+
unicodeEmoji?: string | null;
|
|
338
|
+
mentionable?: boolean | null;
|
|
339
|
+
}, reason?: string): Promise<Role>;
|
|
340
|
+
modifyMFALevel(options: {
|
|
341
|
+
level: MFALevel;
|
|
342
|
+
}, reason?: string): Promise<number>;
|
|
343
|
+
deleteRole(roleId: string, reason?: string): Promise<void>;
|
|
344
|
+
getPruneCount(options: {
|
|
345
|
+
days: number;
|
|
346
|
+
includeRoles: string | Array<string>;
|
|
347
|
+
}): Promise<number>;
|
|
348
|
+
beginGuildPrune(options: {
|
|
349
|
+
days: number;
|
|
350
|
+
computePruneCount: boolean;
|
|
351
|
+
includeRoles: Array<string>;
|
|
352
|
+
reason?: string;
|
|
353
|
+
}, reason?: string): Promise<number>;
|
|
354
|
+
getVoiceRegions(): Promise<Array<JSONVoiceRegion>>;
|
|
355
|
+
getInvites(): Promise<Array<Invite>>;
|
|
356
|
+
getIntegrations(): Promise<Array<Integration>>;
|
|
357
|
+
deleteIntegration(integrationId: string, reason?: string): Promise<void>;
|
|
358
|
+
getWidgetSettings(): Promise<JSONGuildWidgetSettings>;
|
|
359
|
+
modifyWidget(options: {
|
|
360
|
+
enabled?: boolean;
|
|
361
|
+
channelId?: boolean;
|
|
362
|
+
}, reason?: string): Promise<JSONGuildWidgetSettings>;
|
|
363
|
+
getWidget(): Promise<JSONGuildWidget>;
|
|
364
|
+
getVanityURL(): Promise<Invite>;
|
|
365
|
+
getWidgetImage(options?: {
|
|
366
|
+
style?: ImageWidgetStyleOptions;
|
|
367
|
+
}): Promise<string>;
|
|
368
|
+
getWelcomeScreen(): Promise<JSONWelcomeScreen>;
|
|
369
|
+
modifyWelcomeScreen(options: {
|
|
370
|
+
enabled?: boolean | null;
|
|
371
|
+
welcomeChannels?: Array<JSONWelcomeScreenChannel> | null;
|
|
372
|
+
description?: string | null;
|
|
373
|
+
}, reason?: string): Promise<JSONWelcomeScreen>;
|
|
374
|
+
getOnboarding(): Promise<JSONGuildOnboarding>;
|
|
375
|
+
modifyOnboarding(options: {
|
|
376
|
+
prompts: Array<JSONOnboardingPrompt>;
|
|
377
|
+
defaultChannelIds: Array<string>;
|
|
378
|
+
enabled: boolean;
|
|
379
|
+
mode: OnboardingMode;
|
|
380
|
+
}, reason?: string): Promise<void>;
|
|
381
|
+
modifyCurrentUserVoiceState(options: {
|
|
382
|
+
channelId?: string;
|
|
383
|
+
suppress?: boolean;
|
|
384
|
+
requestToSpeakTimestamp?: number | null;
|
|
385
|
+
}): Promise<void>;
|
|
386
|
+
modifyUserVoiceState(userId: string, options: {
|
|
387
|
+
channelId?: string;
|
|
388
|
+
suppress?: boolean;
|
|
389
|
+
requestToSpeakTimestamp?: number | null;
|
|
390
|
+
}): Promise<void>;
|
|
391
|
+
listScheduledEvents(options?: {
|
|
392
|
+
withUserCount?: boolean;
|
|
393
|
+
}): Promise<Array<GuildScheduledEvent>>;
|
|
394
|
+
createScheduledEvent(options: {
|
|
395
|
+
channelId?: string | null;
|
|
396
|
+
entityMetadata?: JSONGuildScheduledEventEntityMetadata | null;
|
|
397
|
+
name: string;
|
|
398
|
+
privacyLevel: GuildScheduledEventPrivacyLevel;
|
|
399
|
+
scheduledStartTime: string;
|
|
400
|
+
scheduledEndTime?: string | null;
|
|
401
|
+
description?: string | null;
|
|
402
|
+
entityType: GuildScheduledEventEntityTypes;
|
|
403
|
+
image?: string;
|
|
404
|
+
}, reason?: string): Promise<GuildScheduledEvent>;
|
|
405
|
+
modifyScheduledEvent(scheduledEventId: string, options: {
|
|
406
|
+
channelId?: string | null;
|
|
407
|
+
entityMetadata?: JSONGuildScheduledEventEntityMetadata | null;
|
|
408
|
+
name?: string;
|
|
409
|
+
privacyLevel?: GuildScheduledEventPrivacyLevel;
|
|
410
|
+
scheduledStartTime?: string;
|
|
411
|
+
scheduledEndTime?: string;
|
|
412
|
+
description?: string | null;
|
|
413
|
+
entityType?: GuildScheduledEventEntityTypes;
|
|
414
|
+
status?: GuildScheduledEventStatus;
|
|
415
|
+
image?: string;
|
|
416
|
+
}, reason?: string): Promise<GuildScheduledEvent>;
|
|
417
|
+
deleteScheduledEvent(scheduledEventId: string): Promise<void>;
|
|
418
|
+
getScheduledEventUsers(scheduledEventId: string, options?: {
|
|
419
|
+
limit?: number;
|
|
420
|
+
withMember?: boolean;
|
|
421
|
+
before?: string;
|
|
422
|
+
after?: string;
|
|
423
|
+
}): Promise<Array<User>>;
|
|
424
|
+
getTemplate(code: string): Promise<GuildTemplate>;
|
|
425
|
+
getTemplates(): Promise<Array<GuildTemplate>>;
|
|
426
|
+
createTemplate(options: {
|
|
427
|
+
name: string;
|
|
428
|
+
description?: string | null;
|
|
429
|
+
}): Promise<GuildTemplate>;
|
|
430
|
+
syncTemplate(code: string): Promise<GuildTemplate>;
|
|
431
|
+
modifyTemplate(code: string, options: {
|
|
432
|
+
name?: string;
|
|
433
|
+
description?: string | null;
|
|
434
|
+
}): Promise<GuildTemplate>;
|
|
435
|
+
deleteTemplate(code: string): Promise<JSONGuildTemplate>;
|
|
436
|
+
listStickers(): Promise<Array<JSONSticker>>;
|
|
437
|
+
getSticker(stickerId: string): Promise<JSONSticker>;
|
|
438
|
+
createSticker(options: {
|
|
439
|
+
name: string;
|
|
440
|
+
description: string;
|
|
441
|
+
tags: string;
|
|
442
|
+
file: File;
|
|
443
|
+
}, reason?: string): Promise<JSONSticker>;
|
|
444
|
+
modifySticker(stickerId: string, options: {
|
|
445
|
+
name?: string;
|
|
446
|
+
description?: string;
|
|
447
|
+
tags?: string;
|
|
448
|
+
}, reason?: string): Promise<JSONSticker>;
|
|
449
|
+
deleteSticker(stickerId: string, reason?: string): Promise<void>;
|
|
450
|
+
getWebhooks(): Promise<Array<Webhook>>;
|
|
451
|
+
toJSON(): JSONGuild;
|
|
452
|
+
}
|