disgroove 3.0.1-dev.a547862 → 3.0.1-dev.b57a9f0
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 +3 -1
- package/dist/lib/Client.js +2 -0
- package/dist/lib/constants.d.ts +5 -3
- package/dist/lib/constants.js +5 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/Client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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, type LobbyMemberFlags, type InviteTargetUsersJobStatusErrorCodes, type AuthorTypes, type SearchHasTypes, type SearchEmbedTypes, type SearchSortModes } from "./constants";
|
|
1
|
+
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, type LobbyMemberFlags, type InviteTargetUsersJobStatusErrorCodes, type AuthorTypes, type SearchHasTypes, type SearchEmbedTypes, type SearchSortModes, EntryPointCommandHandlerTypes } from "./constants";
|
|
2
2
|
import { RequestManager, type FileData } from "./rest";
|
|
3
3
|
import EventEmitter from "node:events";
|
|
4
4
|
import { Shard } from "./gateway";
|
|
@@ -212,6 +212,7 @@ export declare class Client extends EventEmitter {
|
|
|
212
212
|
contexts?: Array<InteractionContextTypes>;
|
|
213
213
|
type?: ApplicationCommandTypes;
|
|
214
214
|
nsfw?: boolean;
|
|
215
|
+
handler?: EntryPointCommandHandlerTypes;
|
|
215
216
|
}): Promise<ApplicationCommand>;
|
|
216
217
|
/** https://discord.com/developers/docs/resources/user#create-group-dm */
|
|
217
218
|
createGroup(options: {
|
|
@@ -537,6 +538,7 @@ export declare class Client extends EventEmitter {
|
|
|
537
538
|
integrationTypes?: Array<ApplicationIntegrationTypes>;
|
|
538
539
|
contexts?: Array<InteractionContextTypes>;
|
|
539
540
|
nsfw?: boolean;
|
|
541
|
+
handler?: EntryPointCommandHandlerTypes;
|
|
540
542
|
}): Promise<ApplicationCommand>;
|
|
541
543
|
/** https://discord.com/developers/docs/resources/guild#modify-guild */
|
|
542
544
|
editGuild(guildId: snowflake, options: {
|
package/dist/lib/Client.js
CHANGED
|
@@ -294,6 +294,7 @@ class Client extends node_events_1.default {
|
|
|
294
294
|
contexts: options.contexts,
|
|
295
295
|
type: options.type,
|
|
296
296
|
nsfw: options.nsfw,
|
|
297
|
+
handler: options.handler,
|
|
297
298
|
},
|
|
298
299
|
});
|
|
299
300
|
return transformers_1.ApplicationCommands.applicationCommandFromRaw(response);
|
|
@@ -1080,6 +1081,7 @@ class Client extends node_events_1.default {
|
|
|
1080
1081
|
integration_types: options.integrationTypes,
|
|
1081
1082
|
contexts: options.contexts,
|
|
1082
1083
|
nsfw: options.nsfw,
|
|
1084
|
+
handler: options.handler,
|
|
1083
1085
|
},
|
|
1084
1086
|
});
|
|
1085
1087
|
return transformers_1.ApplicationCommands.applicationCommandFromRaw(response);
|
package/dist/lib/constants.d.ts
CHANGED
|
@@ -769,8 +769,8 @@ export declare enum VisibilityTypes {
|
|
|
769
769
|
/** https://discord.com/developers/docs/resources/subscription#subscription-statuses */
|
|
770
770
|
export declare enum SubscriptionStatuses {
|
|
771
771
|
Active = 0,
|
|
772
|
-
|
|
773
|
-
|
|
772
|
+
Inactive = 1,
|
|
773
|
+
Ending = 2
|
|
774
774
|
}
|
|
775
775
|
/** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types */
|
|
776
776
|
export declare enum WebhookTypes {
|
|
@@ -1093,8 +1093,8 @@ export declare enum JSONErrorCodes {
|
|
|
1093
1093
|
OnlyBotsCanUseThisEndpoint = 20002,
|
|
1094
1094
|
ExplicitContentCannotBeSentToTheDesiredRecipient = 20009,
|
|
1095
1095
|
NotAuthorizedToPerformThisActionOnThisApplication = 20012,
|
|
1096
|
+
ThisActionRequiresAPremiumSubscription = 20015,
|
|
1096
1097
|
ActionCannotBePerformedDueToSlowmodeRateLimit = 20016,
|
|
1097
|
-
TheMazeIsntMeantForYou = 20017,
|
|
1098
1098
|
OnlyTheOwnerOfThisAccountCanPerformThisAction = 20018,
|
|
1099
1099
|
AnnouncementEditLimitExceeded = 20022,
|
|
1100
1100
|
UnderMinimumAge = 20024,
|
|
@@ -1226,6 +1226,7 @@ export declare enum JSONErrorCodes {
|
|
|
1226
1226
|
VoiceMessagesMustHaveSupportingMetadata = 50161,
|
|
1227
1227
|
VoiceMessagesCannotBeEdited = 50162,
|
|
1228
1228
|
CannotDeleteGuildSubscriptionIntegration = 50163,
|
|
1229
|
+
CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed = 50167,
|
|
1229
1230
|
YouCannotSendVoiceMessagesInThisChannel = 50173,
|
|
1230
1231
|
TheUserAccountMustFirstBeVerified = 50178,
|
|
1231
1232
|
TheProvidedFileDoesNotHaveAValidDuration = 50192,
|
|
@@ -1261,6 +1262,7 @@ export declare enum JSONErrorCodes {
|
|
|
1261
1262
|
WebhooksCanOnlyCreateThreadsInForumChannels = 220003,
|
|
1262
1263
|
WebhookServicesCannotBeUsedInForumChannels = 220004,
|
|
1263
1264
|
MessageBlockedByHarmfulLinksFilter = 240000,
|
|
1265
|
+
AccessToJoiningNewServersHasBeenLimitedForTheUser = 340015,
|
|
1264
1266
|
CannotEnableOnboardingRequirementsAreNotMet = 350000,
|
|
1265
1267
|
CannotUpdateOnboardingWhileBelowRequirements = 350001,
|
|
1266
1268
|
AccessToFileUploadsHasBeenLimitedForThisGuild = 400001,
|
package/dist/lib/constants.js
CHANGED
|
@@ -854,8 +854,8 @@ var VisibilityTypes;
|
|
|
854
854
|
var SubscriptionStatuses;
|
|
855
855
|
(function (SubscriptionStatuses) {
|
|
856
856
|
SubscriptionStatuses[SubscriptionStatuses["Active"] = 0] = "Active";
|
|
857
|
-
SubscriptionStatuses[SubscriptionStatuses["
|
|
858
|
-
SubscriptionStatuses[SubscriptionStatuses["
|
|
857
|
+
SubscriptionStatuses[SubscriptionStatuses["Inactive"] = 1] = "Inactive";
|
|
858
|
+
SubscriptionStatuses[SubscriptionStatuses["Ending"] = 2] = "Ending";
|
|
859
859
|
})(SubscriptionStatuses || (exports.SubscriptionStatuses = SubscriptionStatuses = {}));
|
|
860
860
|
/** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-types */
|
|
861
861
|
var WebhookTypes;
|
|
@@ -1193,8 +1193,8 @@ var JSONErrorCodes;
|
|
|
1193
1193
|
JSONErrorCodes[JSONErrorCodes["OnlyBotsCanUseThisEndpoint"] = 20002] = "OnlyBotsCanUseThisEndpoint";
|
|
1194
1194
|
JSONErrorCodes[JSONErrorCodes["ExplicitContentCannotBeSentToTheDesiredRecipient"] = 20009] = "ExplicitContentCannotBeSentToTheDesiredRecipient";
|
|
1195
1195
|
JSONErrorCodes[JSONErrorCodes["NotAuthorizedToPerformThisActionOnThisApplication"] = 20012] = "NotAuthorizedToPerformThisActionOnThisApplication";
|
|
1196
|
+
JSONErrorCodes[JSONErrorCodes["ThisActionRequiresAPremiumSubscription"] = 20015] = "ThisActionRequiresAPremiumSubscription";
|
|
1196
1197
|
JSONErrorCodes[JSONErrorCodes["ActionCannotBePerformedDueToSlowmodeRateLimit"] = 20016] = "ActionCannotBePerformedDueToSlowmodeRateLimit";
|
|
1197
|
-
JSONErrorCodes[JSONErrorCodes["TheMazeIsntMeantForYou"] = 20017] = "TheMazeIsntMeantForYou";
|
|
1198
1198
|
JSONErrorCodes[JSONErrorCodes["OnlyTheOwnerOfThisAccountCanPerformThisAction"] = 20018] = "OnlyTheOwnerOfThisAccountCanPerformThisAction";
|
|
1199
1199
|
JSONErrorCodes[JSONErrorCodes["AnnouncementEditLimitExceeded"] = 20022] = "AnnouncementEditLimitExceeded";
|
|
1200
1200
|
JSONErrorCodes[JSONErrorCodes["UnderMinimumAge"] = 20024] = "UnderMinimumAge";
|
|
@@ -1326,6 +1326,7 @@ var JSONErrorCodes;
|
|
|
1326
1326
|
JSONErrorCodes[JSONErrorCodes["VoiceMessagesMustHaveSupportingMetadata"] = 50161] = "VoiceMessagesMustHaveSupportingMetadata";
|
|
1327
1327
|
JSONErrorCodes[JSONErrorCodes["VoiceMessagesCannotBeEdited"] = 50162] = "VoiceMessagesCannotBeEdited";
|
|
1328
1328
|
JSONErrorCodes[JSONErrorCodes["CannotDeleteGuildSubscriptionIntegration"] = 50163] = "CannotDeleteGuildSubscriptionIntegration";
|
|
1329
|
+
JSONErrorCodes[JSONErrorCodes["CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed"] = 50167] = "CannotSendVoiceEffectWhenUserIsServerMutedDeafenedOrSuppressed";
|
|
1329
1330
|
JSONErrorCodes[JSONErrorCodes["YouCannotSendVoiceMessagesInThisChannel"] = 50173] = "YouCannotSendVoiceMessagesInThisChannel";
|
|
1330
1331
|
JSONErrorCodes[JSONErrorCodes["TheUserAccountMustFirstBeVerified"] = 50178] = "TheUserAccountMustFirstBeVerified";
|
|
1331
1332
|
JSONErrorCodes[JSONErrorCodes["TheProvidedFileDoesNotHaveAValidDuration"] = 50192] = "TheProvidedFileDoesNotHaveAValidDuration";
|
|
@@ -1361,6 +1362,7 @@ var JSONErrorCodes;
|
|
|
1361
1362
|
JSONErrorCodes[JSONErrorCodes["WebhooksCanOnlyCreateThreadsInForumChannels"] = 220003] = "WebhooksCanOnlyCreateThreadsInForumChannels";
|
|
1362
1363
|
JSONErrorCodes[JSONErrorCodes["WebhookServicesCannotBeUsedInForumChannels"] = 220004] = "WebhookServicesCannotBeUsedInForumChannels";
|
|
1363
1364
|
JSONErrorCodes[JSONErrorCodes["MessageBlockedByHarmfulLinksFilter"] = 240000] = "MessageBlockedByHarmfulLinksFilter";
|
|
1365
|
+
JSONErrorCodes[JSONErrorCodes["AccessToJoiningNewServersHasBeenLimitedForTheUser"] = 340015] = "AccessToJoiningNewServersHasBeenLimitedForTheUser";
|
|
1364
1366
|
JSONErrorCodes[JSONErrorCodes["CannotEnableOnboardingRequirementsAreNotMet"] = 350000] = "CannotEnableOnboardingRequirementsAreNotMet";
|
|
1365
1367
|
JSONErrorCodes[JSONErrorCodes["CannotUpdateOnboardingWhileBelowRequirements"] = 350001] = "CannotUpdateOnboardingWhileBelowRequirements";
|
|
1366
1368
|
JSONErrorCodes[JSONErrorCodes["AccessToFileUploadsHasBeenLimitedForThisGuild"] = 400001] = "AccessToFileUploadsHasBeenLimitedForThisGuild";
|
package/dist/package.json
CHANGED