disgroove 2.2.6 → 2.2.7-dev.fa55410
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/lib/Client.d.ts +2 -41
- package/dist/lib/Client.js +0 -56
- package/dist/lib/constants.d.ts +4 -1
- package/dist/lib/constants.js +3 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/Client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
|
-
import { GatewayIntents, type OAuth2Scopes, type ActionTypes, type ImageWidgetStyleOptions, type
|
|
4
|
+
import { GatewayIntents, type OAuth2Scopes, type ActionTypes, type ImageWidgetStyleOptions, type ReactionTypes, type ApplicationCommandTypes, type EventTypes, type TriggerTypes, type ChannelTypes, type VideoQualityModes, type SortOrderTypes, type ForumLayoutTypes, type InviteTargetTypes, type VerificationLevel, type DefaultMessageNotificationLevel, type ExplicitContentFilterLevel, type SystemChannelFlags, type ApplicationFlags, type ApplicationIntegrationTypes, type ChannelFlags, type GuildFeatures, type GuildScheduledEventEntityTypes, type GuildScheduledEventPrivacyLevel, type GuildScheduledEventStatus, type MessageFlags, type OnboardingMode, type PrivacyLevel, type GuildMemberFlags, type InteractionContextTypes } from "./constants";
|
|
5
5
|
import { RequestManager, type FileData } from "./rest";
|
|
6
6
|
import EventEmitter from "node:events";
|
|
7
7
|
import { Shard } from "./gateway";
|
|
@@ -203,33 +203,6 @@ export declare class Client extends EventEmitter {
|
|
|
203
203
|
accessTokens: Array<string>;
|
|
204
204
|
nicks: Array<string>;
|
|
205
205
|
}): Promise<Channel>;
|
|
206
|
-
/** https://discord.com/developers/docs/resources/guild#create-guild */
|
|
207
|
-
createGuild(options: {
|
|
208
|
-
name: string;
|
|
209
|
-
icon?: string;
|
|
210
|
-
verificationLevel?: VerificationLevel;
|
|
211
|
-
defaultMessageNotifications?: DefaultMessageNotificationLevel;
|
|
212
|
-
explicitContentFilter?: ExplicitContentFilterLevel;
|
|
213
|
-
roles?: Array<{
|
|
214
|
-
name?: string;
|
|
215
|
-
permissions?: string;
|
|
216
|
-
color?: number;
|
|
217
|
-
hoist?: boolean;
|
|
218
|
-
icon?: string | null;
|
|
219
|
-
unicodeEmoji?: string | null;
|
|
220
|
-
mentionable?: boolean;
|
|
221
|
-
}>;
|
|
222
|
-
channels?: Array<{
|
|
223
|
-
name: string;
|
|
224
|
-
type: ChannelTypes;
|
|
225
|
-
id?: number;
|
|
226
|
-
parentID?: number;
|
|
227
|
-
}>;
|
|
228
|
-
afkChannelID?: snowflake;
|
|
229
|
-
afkTimeout?: number;
|
|
230
|
-
systemChannelID?: snowflake;
|
|
231
|
-
systemChannelFlags?: SystemChannelFlags;
|
|
232
|
-
}): Promise<Guild>;
|
|
233
206
|
/** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
|
|
234
207
|
createGuildApplicationCommand(applicationID: snowflake, guildID: snowflake, options: {
|
|
235
208
|
name: string;
|
|
@@ -252,11 +225,6 @@ export declare class Client extends EventEmitter {
|
|
|
252
225
|
image: string;
|
|
253
226
|
roles: Array<snowflake>;
|
|
254
227
|
}, reason?: string): Promise<Emoji>;
|
|
255
|
-
/** https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template */
|
|
256
|
-
createGuildFromTemplate(code: string, options: {
|
|
257
|
-
name: string;
|
|
258
|
-
icon?: string;
|
|
259
|
-
}): Promise<Guild>;
|
|
260
228
|
/** https://discord.com/developers/docs/resources/guild#create-guild-role */
|
|
261
229
|
createGuildRole(guildID: snowflake, options: {
|
|
262
230
|
name?: string;
|
|
@@ -396,8 +364,6 @@ export declare class Client extends EventEmitter {
|
|
|
396
364
|
deleteChannelPermission(channelID: snowflake, overwriteID: snowflake, reason?: string): void;
|
|
397
365
|
/** https://discord.com/developers/docs/interactions/application-commands#delete-global-application-command */
|
|
398
366
|
deleteGlobalApplicationCommand(applicationID: snowflake, commandID: snowflake): void;
|
|
399
|
-
/** https://discord.com/developers/docs/resources/guild#delete-guild */
|
|
400
|
-
deleteGuild(guildID: snowflake): void;
|
|
401
367
|
/** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
|
|
402
368
|
deleteGuildApplicationCommand(applicationID: snowflake, guildID: snowflake, commandID: snowflake): void;
|
|
403
369
|
/** https://discord.com/developers/docs/resources/emoji#delete-guild-emoji */
|
|
@@ -547,7 +513,6 @@ export declare class Client extends EventEmitter {
|
|
|
547
513
|
afkChannelID?: snowflake | null;
|
|
548
514
|
afkTimeout?: number;
|
|
549
515
|
icon?: string | null;
|
|
550
|
-
ownerID?: snowflake;
|
|
551
516
|
splash?: string | null;
|
|
552
517
|
discoverySplash?: string | null;
|
|
553
518
|
banner?: string | null;
|
|
@@ -591,10 +556,6 @@ export declare class Client extends EventEmitter {
|
|
|
591
556
|
communicationDisabledUntil?: timestamp | null;
|
|
592
557
|
flags?: GuildMemberFlags | null;
|
|
593
558
|
}, reason?: string): Promise<GuildMember>;
|
|
594
|
-
/** https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level */
|
|
595
|
-
editGuildMFALevel(guildID: snowflake, options: {
|
|
596
|
-
level: MFALevel;
|
|
597
|
-
}, reason?: string): Promise<MFALevel>;
|
|
598
559
|
/** https://discord.com/developers/docs/resources/guild#modify-guild-onboarding */
|
|
599
560
|
editGuildOnboarding(guildID: snowflake, options: {
|
|
600
561
|
prompts?: Array<OnboardingPrompt>;
|
|
@@ -700,7 +661,7 @@ export declare class Client extends EventEmitter {
|
|
|
700
661
|
}): Promise<Message>;
|
|
701
662
|
/** https://discord.com/developers/docs/resources/guild#modify-user-voice-state */
|
|
702
663
|
editUserVoiceState(guildID: snowflake, userID: snowflake, options: {
|
|
703
|
-
channelID
|
|
664
|
+
channelID?: snowflake;
|
|
704
665
|
suppress?: boolean;
|
|
705
666
|
}): void;
|
|
706
667
|
/** https://discord.com/developers/docs/resources/webhook#modify-webhook */
|
package/dist/lib/Client.js
CHANGED
|
@@ -288,38 +288,6 @@ class Client extends node_events_1.default {
|
|
|
288
288
|
});
|
|
289
289
|
return transformers_1.Channels.channelFromRaw(response);
|
|
290
290
|
}
|
|
291
|
-
/** https://discord.com/developers/docs/resources/guild#create-guild */
|
|
292
|
-
async createGuild(options) {
|
|
293
|
-
const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guilds(), {
|
|
294
|
-
json: {
|
|
295
|
-
name: options.name,
|
|
296
|
-
icon: options.icon,
|
|
297
|
-
verification_level: options.verificationLevel,
|
|
298
|
-
default_message_notifications: options.defaultMessageNotifications,
|
|
299
|
-
explicit_content_filter: options.explicitContentFilter,
|
|
300
|
-
roles: options.roles?.map((role) => ({
|
|
301
|
-
name: role.name,
|
|
302
|
-
color: role.color,
|
|
303
|
-
hoist: role.hoist,
|
|
304
|
-
icon: role.icon,
|
|
305
|
-
unicode_emoji: role.unicodeEmoji,
|
|
306
|
-
permissions: role.permissions,
|
|
307
|
-
mentionable: role.mentionable,
|
|
308
|
-
})),
|
|
309
|
-
channels: options.channels?.map((channel) => ({
|
|
310
|
-
name: channel.name,
|
|
311
|
-
type: channel.type,
|
|
312
|
-
id: channel.id,
|
|
313
|
-
parent_id: channel.id,
|
|
314
|
-
})),
|
|
315
|
-
afk_channel_id: options.afkChannelID,
|
|
316
|
-
afk_timeout: options.afkTimeout,
|
|
317
|
-
system_channel_id: options.systemChannelID,
|
|
318
|
-
system_channel_flags: options.systemChannelFlags,
|
|
319
|
-
},
|
|
320
|
-
});
|
|
321
|
-
return transformers_1.Guilds.guildFromRaw(response);
|
|
322
|
-
}
|
|
323
291
|
/** https://discord.com/developers/docs/interactions/application-commands#create-guild-application-command */
|
|
324
292
|
async createGuildApplicationCommand(applicationID, guildID, options) {
|
|
325
293
|
const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.applicationGuildCommands(applicationID, guildID), {
|
|
@@ -358,16 +326,6 @@ class Client extends node_events_1.default {
|
|
|
358
326
|
});
|
|
359
327
|
return transformers_1.Emojis.emojiFromRaw(response);
|
|
360
328
|
}
|
|
361
|
-
/** https://discord.com/developers/docs/resources/guild-template#create-guild-from-guild-template */
|
|
362
|
-
async createGuildFromTemplate(code, options) {
|
|
363
|
-
const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.template(code), {
|
|
364
|
-
json: {
|
|
365
|
-
name: options.name,
|
|
366
|
-
icon: options.icon,
|
|
367
|
-
},
|
|
368
|
-
});
|
|
369
|
-
return transformers_1.Guilds.guildFromRaw(response);
|
|
370
|
-
}
|
|
371
329
|
/** https://discord.com/developers/docs/resources/guild#create-guild-role */
|
|
372
330
|
async createGuildRole(guildID, options, reason) {
|
|
373
331
|
const response = await this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildRoles(guildID), {
|
|
@@ -764,10 +722,6 @@ class Client extends node_events_1.default {
|
|
|
764
722
|
deleteGlobalApplicationCommand(applicationID, commandID) {
|
|
765
723
|
this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationCommand(applicationID, commandID));
|
|
766
724
|
}
|
|
767
|
-
/** https://discord.com/developers/docs/resources/guild#delete-guild */
|
|
768
|
-
deleteGuild(guildID) {
|
|
769
|
-
this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.guild(guildID));
|
|
770
|
-
}
|
|
771
725
|
/** https://discord.com/developers/docs/interactions/application-commands#delete-guild-application-command */
|
|
772
726
|
deleteGuildApplicationCommand(applicationID, guildID, commandID) {
|
|
773
727
|
this.rest.request(rest_1.RESTMethods.Delete, rest_1.Endpoints.applicationGuildCommand(applicationID, guildID, commandID));
|
|
@@ -1054,7 +1008,6 @@ class Client extends node_events_1.default {
|
|
|
1054
1008
|
afk_channel_id: options.afkChannelID,
|
|
1055
1009
|
afk_timeout: options.afkTimeout,
|
|
1056
1010
|
icon: options.icon,
|
|
1057
|
-
owner_id: options.ownerID,
|
|
1058
1011
|
splash: options.splash,
|
|
1059
1012
|
discovery_splash: options.discoverySplash,
|
|
1060
1013
|
banner: options.banner,
|
|
@@ -1130,15 +1083,6 @@ class Client extends node_events_1.default {
|
|
|
1130
1083
|
});
|
|
1131
1084
|
return transformers_1.Guilds.guildMemberFromRaw(response);
|
|
1132
1085
|
}
|
|
1133
|
-
/** https://discord.com/developers/docs/resources/guild#modify-guild-mfa-level */
|
|
1134
|
-
editGuildMFALevel(guildID, options, reason) {
|
|
1135
|
-
return this.rest.request(rest_1.RESTMethods.Post, rest_1.Endpoints.guildMFA(guildID), {
|
|
1136
|
-
json: {
|
|
1137
|
-
level: options.level,
|
|
1138
|
-
},
|
|
1139
|
-
reason,
|
|
1140
|
-
});
|
|
1141
|
-
}
|
|
1142
1086
|
/** https://discord.com/developers/docs/resources/guild#modify-guild-onboarding */
|
|
1143
1087
|
editGuildOnboarding(guildID, options, reason) {
|
|
1144
1088
|
this.rest.request(rest_1.RESTMethods.Patch, rest_1.Endpoints.guildOnboarding(guildID), {
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -254,6 +254,7 @@ export declare enum AuditLogEvents {
|
|
|
254
254
|
AutoModerationBlockMessage = 143,
|
|
255
255
|
AutoModerationFlagToChannel = 144,
|
|
256
256
|
AutoModerationUserCommunicationDisabled = 145,
|
|
257
|
+
AutoModerationQuarantineUser = 146,
|
|
257
258
|
CreatorMonetizationRequestCreated = 150,
|
|
258
259
|
CreatorMonetizationTermsAccepted = 151,
|
|
259
260
|
OnboardingPromptCreate = 163,
|
|
@@ -407,6 +408,7 @@ export declare enum GuildFeatures {
|
|
|
407
408
|
VipRegions = "VIP_REGIONS",
|
|
408
409
|
WelcomeScreenEnabled = "WELCOME_SCREEN_ENABLED",
|
|
409
410
|
GuestsEnabled = "GUESTS_ENABLED",
|
|
411
|
+
GuildTags = "GUILD_TAGS",
|
|
410
412
|
EnhancedRoleColors = "ENHANCED_ROLE_COLORS"
|
|
411
413
|
}
|
|
412
414
|
/** https://discord.com/developers/docs/resources/guild#guild-object-mutable-guild-features */
|
|
@@ -426,7 +428,8 @@ export declare enum GuildMemberFlags {
|
|
|
426
428
|
StartedHomeActions = 32,
|
|
427
429
|
CompletedHomeActions = 64,
|
|
428
430
|
AutomodQuarantinedUsername = 128,
|
|
429
|
-
DMSettingsUpsellAckownledge = 512
|
|
431
|
+
DMSettingsUpsellAckownledge = 512,
|
|
432
|
+
AutomodQuarantinedGuildTag = 1024
|
|
430
433
|
}
|
|
431
434
|
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors */
|
|
432
435
|
export declare enum IntegrationExpireBehaviors {
|
package/dist/lib/constants.js
CHANGED
|
@@ -279,6 +279,7 @@ var AuditLogEvents;
|
|
|
279
279
|
AuditLogEvents[AuditLogEvents["AutoModerationBlockMessage"] = 143] = "AutoModerationBlockMessage";
|
|
280
280
|
AuditLogEvents[AuditLogEvents["AutoModerationFlagToChannel"] = 144] = "AutoModerationFlagToChannel";
|
|
281
281
|
AuditLogEvents[AuditLogEvents["AutoModerationUserCommunicationDisabled"] = 145] = "AutoModerationUserCommunicationDisabled";
|
|
282
|
+
AuditLogEvents[AuditLogEvents["AutoModerationQuarantineUser"] = 146] = "AutoModerationQuarantineUser";
|
|
282
283
|
AuditLogEvents[AuditLogEvents["CreatorMonetizationRequestCreated"] = 150] = "CreatorMonetizationRequestCreated";
|
|
283
284
|
AuditLogEvents[AuditLogEvents["CreatorMonetizationTermsAccepted"] = 151] = "CreatorMonetizationTermsAccepted";
|
|
284
285
|
AuditLogEvents[AuditLogEvents["OnboardingPromptCreate"] = 163] = "OnboardingPromptCreate";
|
|
@@ -449,6 +450,7 @@ var GuildFeatures;
|
|
|
449
450
|
GuildFeatures["VipRegions"] = "VIP_REGIONS";
|
|
450
451
|
GuildFeatures["WelcomeScreenEnabled"] = "WELCOME_SCREEN_ENABLED";
|
|
451
452
|
GuildFeatures["GuestsEnabled"] = "GUESTS_ENABLED";
|
|
453
|
+
GuildFeatures["GuildTags"] = "GUILD_TAGS";
|
|
452
454
|
GuildFeatures["EnhancedRoleColors"] = "ENHANCED_ROLE_COLORS";
|
|
453
455
|
})(GuildFeatures || (exports.GuildFeatures = GuildFeatures = {}));
|
|
454
456
|
/** https://discord.com/developers/docs/resources/guild#guild-object-mutable-guild-features */
|
|
@@ -471,6 +473,7 @@ var GuildMemberFlags;
|
|
|
471
473
|
GuildMemberFlags[GuildMemberFlags["CompletedHomeActions"] = 64] = "CompletedHomeActions";
|
|
472
474
|
GuildMemberFlags[GuildMemberFlags["AutomodQuarantinedUsername"] = 128] = "AutomodQuarantinedUsername";
|
|
473
475
|
GuildMemberFlags[GuildMemberFlags["DMSettingsUpsellAckownledge"] = 512] = "DMSettingsUpsellAckownledge";
|
|
476
|
+
GuildMemberFlags[GuildMemberFlags["AutomodQuarantinedGuildTag"] = 1024] = "AutomodQuarantinedGuildTag";
|
|
474
477
|
})(GuildMemberFlags || (exports.GuildMemberFlags = GuildMemberFlags = {}));
|
|
475
478
|
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-expire-behaviors */
|
|
476
479
|
var IntegrationExpireBehaviors;
|
package/dist/package.json
CHANGED