disgroove 2.1.0 → 2.1.2-dev.afcffb7
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 +7 -4
- package/dist/lib/Client.js +4 -1
- package/dist/lib/constants.d.ts +20 -1
- package/dist/lib/constants.js +23 -2
- package/dist/lib/types/channel.d.ts +15 -3
- package/dist/lib/types/gateway-events.d.ts +20 -1
- package/dist/lib/types/invite.d.ts +3 -1
- package/dist/lib/types/user.d.ts +1 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/Client.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="node" />
|
2
|
-
import { GatewayIntents, type OAuth2Scopes, type StatusTypes, type ActionTypes, type ImageWidgetStyleOptions, type MFALevel } from "./constants";
|
2
|
+
import { GatewayIntents, type OAuth2Scopes, type StatusTypes, type ActionTypes, type ImageWidgetStyleOptions, type MFALevel, type ReactionTypes } from "./constants";
|
3
3
|
import { Util } from "./utils";
|
4
4
|
import { RequestManager } from "./rest";
|
5
|
-
import type { Activity, AuditLogEntry, AutoModerationActionExecutionEventFields, AutoModerationRule, Channel, ChannelPinsUpdateEventFields, GuildApplicationCommandPermissions, GuildBanAddEventFields, GuildBanRemoveEventFields, GuildMemberRemoveEventFields, GuildMemberUpdateEventFields, GuildMembersChunkEventFields, GuildScheduledEvent, IntegrationDeleteEventFields, InviteCreateEventFields, InviteDeleteEventFields, MessageDeleteBulkEventFields, MessageDeleteEventFields, MessageReactionAddEventFields, MessageReactionRemoveAllEventFields, MessageReactionRemoveEmojiEventFields, MessageReactionRemoveEventFields, PresenceUpdateEventFields, StageInstance, StickerPack, ThreadListSyncEventFields, ThreadMember, ThreadMembersUpdateEventFields, TypingStartEventFields, VoiceRegion, VoiceServerUpdateEventFields, Entitlement, UnavailableGuild, CreateGlobalApplicationCommandParams, ApplicationCommand, CreateGuildApplicationCommandParams, CreateTestEntitlementParams, EditCurrentApplicationParams, Application, EditGlobalApplicationCommandParams, EditGuildApplicationCommandParams, ApplicationRoleConnectionMetadata, Sku, BulkEditGlobalApplicationCommandsParams, BulkEditGuildApplicationCommandsParams, CreateGuildParams, CreateGuildFromGuildTemplateParams, CreateStageInstanceParams, EditAutoModerationRuleParams, CreateChannelInviteParams, Invite, CreateMessageParams, Message, CreateThreadFromMessageParams, CreateThreadParams, CreateThreadWithoutMessageParams, Webhook, EditChannelParams, EditMessageParams, FollowedChannel, User, Emoji, EditGuildEmojiParams, AddGuildMemberParams, BeginGuildPruneParams, GuildMember, CreateAutoModerationRuleParams, CreateGuildBanParams, CreateGuildChannelParams, CreateGuildEmojiParams, CreateGuildRoleParams, Role, CreateGuildScheduledEventParams, CreateGuildStickerParams, CreateGuildTemplateParams, GuildTemplate, Sticker, EditGuildParams, Guild, EditGuildChannelPositionsParams, EditGuildMemberParams, EditCurrentUserVoiceStateParams, EditCurrentGuildMemberParams, EditGuildMFALevelParams, EditGuildOnboardingParams, EditGuildRolePositionsParams, EditGuildScheduledEventParams, EditGuildStickerParams, EditGuildTemplateParams, EditGuildWelcomeScreenParams, WelcomeScreen, GuildWidgetSettings, AuditLog, Ban, Integration, GuildOnboarding, GuildPreview, GuildScheduledEventUser, GuildWidget, ExecuteWebhookParams, CreateInteractionFollowupMessageParams, InteractionResponse, EditWebhookMessageParams, EditStageInstanceParams, CreateDMParams, EditCurrentUserParams, ApplicationRoleConnection, Connection, UpdateCurrentUserApplicationRoleConnection, EditWebhookParams, Interaction, VoiceState, GuildCreateEventExtraFields, GuildMemberAddEventExtraFields, IntegrationCreateEventExtraFields, IntegrationUpdateEventExtraFields, MessageCreateEventExtraFields, ThreadMemberUpdateEventExtraFields, MessagePollVoteAddFields, MessagePollVoteRemoveFields, BulkGuildBanParams, BulkDeleteMessagesParams } from "./types";
|
5
|
+
import type { Activity, AuditLogEntry, AutoModerationActionExecutionEventFields, AutoModerationRule, Channel, ChannelPinsUpdateEventFields, GuildApplicationCommandPermissions, GuildBanAddEventFields, GuildBanRemoveEventFields, GuildMemberRemoveEventFields, GuildMemberUpdateEventFields, GuildMembersChunkEventFields, GuildScheduledEvent, IntegrationDeleteEventFields, InviteCreateEventFields, InviteDeleteEventFields, MessageDeleteBulkEventFields, MessageDeleteEventFields, MessageReactionAddEventFields, MessageReactionRemoveAllEventFields, MessageReactionRemoveEmojiEventFields, MessageReactionRemoveEventFields, PresenceUpdateEventFields, StageInstance, StickerPack, ThreadListSyncEventFields, ThreadMember, ThreadMembersUpdateEventFields, TypingStartEventFields, VoiceRegion, VoiceServerUpdateEventFields, Entitlement, UnavailableGuild, CreateGlobalApplicationCommandParams, ApplicationCommand, CreateGuildApplicationCommandParams, CreateTestEntitlementParams, EditCurrentApplicationParams, Application, EditGlobalApplicationCommandParams, EditGuildApplicationCommandParams, ApplicationRoleConnectionMetadata, Sku, BulkEditGlobalApplicationCommandsParams, BulkEditGuildApplicationCommandsParams, CreateGuildParams, CreateGuildFromGuildTemplateParams, CreateStageInstanceParams, EditAutoModerationRuleParams, CreateChannelInviteParams, Invite, CreateMessageParams, Message, CreateThreadFromMessageParams, CreateThreadParams, CreateThreadWithoutMessageParams, Webhook, EditChannelParams, EditMessageParams, FollowedChannel, User, Emoji, EditGuildEmojiParams, AddGuildMemberParams, BeginGuildPruneParams, GuildMember, CreateAutoModerationRuleParams, CreateGuildBanParams, CreateGuildChannelParams, CreateGuildEmojiParams, CreateGuildRoleParams, Role, CreateGuildScheduledEventParams, CreateGuildStickerParams, CreateGuildTemplateParams, GuildTemplate, Sticker, EditGuildParams, Guild, EditGuildChannelPositionsParams, EditGuildMemberParams, EditCurrentUserVoiceStateParams, EditCurrentGuildMemberParams, EditGuildMFALevelParams, EditGuildOnboardingParams, EditGuildRolePositionsParams, EditGuildScheduledEventParams, EditGuildStickerParams, EditGuildTemplateParams, EditGuildWelcomeScreenParams, WelcomeScreen, GuildWidgetSettings, AuditLog, Ban, Integration, GuildOnboarding, GuildPreview, GuildScheduledEventUser, GuildWidget, ExecuteWebhookParams, CreateInteractionFollowupMessageParams, InteractionResponse, EditWebhookMessageParams, EditStageInstanceParams, CreateDMParams, EditCurrentUserParams, ApplicationRoleConnection, Connection, UpdateCurrentUserApplicationRoleConnection, EditWebhookParams, Interaction, VoiceState, GuildCreateEventExtraFields, GuildMemberAddEventExtraFields, IntegrationCreateEventExtraFields, IntegrationUpdateEventExtraFields, MessageCreateEventExtraFields, ThreadMemberUpdateEventExtraFields, MessagePollVoteAddFields, MessagePollVoteRemoveFields, BulkGuildBanParams, BulkDeleteMessagesParams, GuildAuditLogEntryCreateExtraFields } from "./types";
|
6
6
|
import EventEmitter from "node:events";
|
7
7
|
import { ShardManager } from "./gateway";
|
8
8
|
export interface ClientOptions {
|
@@ -268,7 +268,7 @@ export declare class Client extends EventEmitter {
|
|
268
268
|
/** https://discord.com/developers/docs/resources/channel#follow-announcement-channel */
|
269
269
|
followChannel(channelId: string, options: {
|
270
270
|
webhookChannelId: string;
|
271
|
-
}): Promise<FollowedChannel>;
|
271
|
+
}, reason?: string): Promise<FollowedChannel>;
|
272
272
|
/** https://discord.com/developers/docs/resources/guild#list-active-guild-threads */
|
273
273
|
getActiveGuildThreads(guildId: string): Promise<{
|
274
274
|
threads: Array<Channel>;
|
@@ -461,6 +461,7 @@ export declare class Client extends EventEmitter {
|
|
461
461
|
getMessage(channelId: string, messageId: string): Promise<Message>;
|
462
462
|
/** https://discord.com/developers/docs/resources/channel#get-reactions */
|
463
463
|
getMessageReactions(channelId: string, messageId: string, emoji: string, options?: {
|
464
|
+
type?: ReactionTypes;
|
464
465
|
after?: string;
|
465
466
|
limit?: number;
|
466
467
|
}): Promise<Array<User>>;
|
@@ -613,7 +614,9 @@ export interface ClientEvents {
|
|
613
614
|
];
|
614
615
|
guildUpdate: [guild: Guild];
|
615
616
|
guildDelete: [guild: UnavailableGuild];
|
616
|
-
guildAuditLogEntryCreate: [
|
617
|
+
guildAuditLogEntryCreate: [
|
618
|
+
auditLogEntry: AuditLogEntry & GuildAuditLogEntryCreateExtraFields
|
619
|
+
];
|
617
620
|
guildBanAdd: [ban: GuildBanAddEventFields];
|
618
621
|
guildBanRemove: [ban: GuildBanRemoveEventFields];
|
619
622
|
guildEmojisUpdate: [emojis: Array<Emoji>, guildId: string];
|
package/dist/lib/Client.js
CHANGED
@@ -829,6 +829,7 @@ class Client extends node_events_1.default {
|
|
829
829
|
json: {
|
830
830
|
username: options.username,
|
831
831
|
avatar: options.avatar,
|
832
|
+
banner: options.banner,
|
832
833
|
},
|
833
834
|
})
|
834
835
|
.then((response) => this.util.toCamelCase(response));
|
@@ -1311,12 +1312,13 @@ class Client extends node_events_1.default {
|
|
1311
1312
|
.then((response) => response !== null ? this.util.toCamelCase(response) : null);
|
1312
1313
|
}
|
1313
1314
|
/** https://discord.com/developers/docs/resources/channel#follow-announcement-channel */
|
1314
|
-
followChannel(channelId, options) {
|
1315
|
+
followChannel(channelId, options, reason) {
|
1315
1316
|
return this.rest
|
1316
1317
|
.request(rest_1.RESTMethods.Post, rest_1.Endpoints.channelFollowers(channelId), {
|
1317
1318
|
json: {
|
1318
1319
|
webhook_channel_id: options.webhookChannelId,
|
1319
1320
|
},
|
1321
|
+
reason,
|
1320
1322
|
})
|
1321
1323
|
.then((response) => this.util.toCamelCase(response));
|
1322
1324
|
}
|
@@ -1730,6 +1732,7 @@ class Client extends node_events_1.default {
|
|
1730
1732
|
return this.rest
|
1731
1733
|
.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelMessageAllReactions(channelId, messageId, emoji), {
|
1732
1734
|
query: {
|
1735
|
+
type: options?.type,
|
1733
1736
|
after: options?.after,
|
1734
1737
|
limit: options?.limit,
|
1735
1738
|
},
|
package/dist/lib/constants.d.ts
CHANGED
@@ -203,7 +203,14 @@ export declare enum AuditLogEvents {
|
|
203
203
|
AutoModerationFlagToChannel = 144,
|
204
204
|
AutoModerationUserCommunicationDisabled = 145,
|
205
205
|
CreatorMonetizationRequestCreated = 150,
|
206
|
-
CreatorMonetizationTermsAccepted = 151
|
206
|
+
CreatorMonetizationTermsAccepted = 151,
|
207
|
+
OnboardingPromptCreate = 163,
|
208
|
+
OnboardingPromptUpdate = 164,
|
209
|
+
OnboardingPromptDelete = 165,
|
210
|
+
OnboardingCreate = 166,
|
211
|
+
OnboardingUpdate = 167,
|
212
|
+
HomeSettingsCreate = 190,
|
213
|
+
HomeSettingsUpdate = 191
|
207
214
|
}
|
208
215
|
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types */
|
209
216
|
export declare enum TriggerTypes {
|
@@ -331,6 +338,11 @@ export declare enum AllowedMentionTypes {
|
|
331
338
|
UserMentions = "users",
|
332
339
|
EveryoneMentions = "everyone"
|
333
340
|
}
|
341
|
+
/** https://discord.com/developers/docs/resources/channel#get-reactions-reaction-types */
|
342
|
+
export declare enum ReactionTypes {
|
343
|
+
Normal = 0,
|
344
|
+
Burst = 1
|
345
|
+
}
|
334
346
|
/** https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level */
|
335
347
|
export declare enum DefaultMessageNotificationLevel {
|
336
348
|
AllMessages = 0,
|
@@ -462,6 +474,12 @@ export declare enum GuildScheduledEventStatus {
|
|
462
474
|
Completed = 3,
|
463
475
|
Canceled = 4
|
464
476
|
}
|
477
|
+
/** https://discord.com/developers/docs/resources/invite#invite-object-invite-types */
|
478
|
+
export declare enum InviteTypes {
|
479
|
+
Guild = 0,
|
480
|
+
GroupDM = 1,
|
481
|
+
Friend = 2
|
482
|
+
}
|
465
483
|
/** https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */
|
466
484
|
export declare enum InviteTargetTypes {
|
467
485
|
Stream = 1,
|
@@ -896,6 +914,7 @@ export declare enum JSONErrorCodes {
|
|
896
914
|
ThereAreNoTagsAvailableThatCanBeSetByNonModerators = 40066,
|
897
915
|
TagRequiredToCreateAForumPostInThisChannel = 40067,
|
898
916
|
AnEntitlementHasAlreadyBeenGrantedForThisResource = 40074,
|
917
|
+
CloudflareIsBlockingYourRequestThisCanOftenBeResolvedBySettingAProperUserAgent = 40333,
|
899
918
|
MissingAccess = 50001,
|
900
919
|
InvalidAccountType = 50002,
|
901
920
|
CannotExecuteActionOnDMChannel = 50003,
|
package/dist/lib/constants.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.EntitlementTypes = exports.SkuFlags = exports.SkuTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = void 0;
|
3
|
+
exports.LayoutType = exports.InviteTargetTypes = exports.InviteTypes = exports.GuildScheduledEventStatus = exports.GuildScheduledEventEntityTypes = exports.GuildScheduledEventPrivacyLevel = exports.ImageWidgetStyleOptions = exports.PromptTypes = exports.OnboardingMode = exports.IntegrationExpireBehaviors = exports.GuildMemberFlags = exports.MutableGuildFeatures = exports.GuildFeatures = exports.SystemChannelFlags = exports.PremiumTier = exports.GuildNSFWLevel = exports.VerificationLevel = exports.MFALevel = exports.ExplicitContentFilterLevel = exports.DefaultMessageNotificationLevel = exports.ReactionTypes = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = exports.ForumLayoutTypes = exports.SortOrderTypes = exports.ChannelFlags = exports.VideoQualityModes = exports.ChannelTypes = exports.ActionTypes = exports.EventTypes = exports.KeywordPresetTypes = exports.TriggerTypes = exports.AuditLogEvents = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlags = exports.ApplicationIntegrationTypes = exports.TextInputStyles = exports.ButtonStyles = exports.InteractionCallbackType = exports.ComponentTypes = exports.InterationContextTypes = exports.InteractionType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.ApplicationCommandTypes = exports.Locales = exports.ImageFormats = void 0;
|
4
|
+
exports.EntitlementTypes = exports.SkuFlags = exports.SkuTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = exports.StickerTypes = exports.PrivacyLevel = void 0;
|
5
5
|
/** https://discord.com/developers/docs/reference#image-formatting-image-formats */
|
6
6
|
var ImageFormats;
|
7
7
|
(function (ImageFormats) {
|
@@ -223,6 +223,13 @@ var AuditLogEvents;
|
|
223
223
|
AuditLogEvents[AuditLogEvents["AutoModerationUserCommunicationDisabled"] = 145] = "AutoModerationUserCommunicationDisabled";
|
224
224
|
AuditLogEvents[AuditLogEvents["CreatorMonetizationRequestCreated"] = 150] = "CreatorMonetizationRequestCreated";
|
225
225
|
AuditLogEvents[AuditLogEvents["CreatorMonetizationTermsAccepted"] = 151] = "CreatorMonetizationTermsAccepted";
|
226
|
+
AuditLogEvents[AuditLogEvents["OnboardingPromptCreate"] = 163] = "OnboardingPromptCreate";
|
227
|
+
AuditLogEvents[AuditLogEvents["OnboardingPromptUpdate"] = 164] = "OnboardingPromptUpdate";
|
228
|
+
AuditLogEvents[AuditLogEvents["OnboardingPromptDelete"] = 165] = "OnboardingPromptDelete";
|
229
|
+
AuditLogEvents[AuditLogEvents["OnboardingCreate"] = 166] = "OnboardingCreate";
|
230
|
+
AuditLogEvents[AuditLogEvents["OnboardingUpdate"] = 167] = "OnboardingUpdate";
|
231
|
+
AuditLogEvents[AuditLogEvents["HomeSettingsCreate"] = 190] = "HomeSettingsCreate";
|
232
|
+
AuditLogEvents[AuditLogEvents["HomeSettingsUpdate"] = 191] = "HomeSettingsUpdate";
|
226
233
|
})(AuditLogEvents || (exports.AuditLogEvents = AuditLogEvents = {}));
|
227
234
|
/** https://discord.com/developers/docs/resources/auto-moderation#auto-moderation-rule-object-trigger-types */
|
228
235
|
var TriggerTypes;
|
@@ -364,6 +371,12 @@ var AllowedMentionTypes;
|
|
364
371
|
AllowedMentionTypes["UserMentions"] = "users";
|
365
372
|
AllowedMentionTypes["EveryoneMentions"] = "everyone";
|
366
373
|
})(AllowedMentionTypes || (exports.AllowedMentionTypes = AllowedMentionTypes = {}));
|
374
|
+
/** https://discord.com/developers/docs/resources/channel#get-reactions-reaction-types */
|
375
|
+
var ReactionTypes;
|
376
|
+
(function (ReactionTypes) {
|
377
|
+
ReactionTypes[ReactionTypes["Normal"] = 0] = "Normal";
|
378
|
+
ReactionTypes[ReactionTypes["Burst"] = 1] = "Burst";
|
379
|
+
})(ReactionTypes || (exports.ReactionTypes = ReactionTypes = {}));
|
367
380
|
/** https://discord.com/developers/docs/resources/guild#guild-object-default-message-notification-level */
|
368
381
|
var DefaultMessageNotificationLevel;
|
369
382
|
(function (DefaultMessageNotificationLevel) {
|
@@ -512,6 +525,13 @@ var GuildScheduledEventStatus;
|
|
512
525
|
GuildScheduledEventStatus[GuildScheduledEventStatus["Completed"] = 3] = "Completed";
|
513
526
|
GuildScheduledEventStatus[GuildScheduledEventStatus["Canceled"] = 4] = "Canceled";
|
514
527
|
})(GuildScheduledEventStatus || (exports.GuildScheduledEventStatus = GuildScheduledEventStatus = {}));
|
528
|
+
/** https://discord.com/developers/docs/resources/invite#invite-object-invite-types */
|
529
|
+
var InviteTypes;
|
530
|
+
(function (InviteTypes) {
|
531
|
+
InviteTypes[InviteTypes["Guild"] = 0] = "Guild";
|
532
|
+
InviteTypes[InviteTypes["GroupDM"] = 1] = "GroupDM";
|
533
|
+
InviteTypes[InviteTypes["Friend"] = 2] = "Friend";
|
534
|
+
})(InviteTypes || (exports.InviteTypes = InviteTypes = {}));
|
515
535
|
/** https://discord.com/developers/docs/resources/invite#invite-object-invite-target-types */
|
516
536
|
var InviteTargetTypes;
|
517
537
|
(function (InviteTargetTypes) {
|
@@ -969,6 +989,7 @@ var JSONErrorCodes;
|
|
969
989
|
JSONErrorCodes[JSONErrorCodes["ThereAreNoTagsAvailableThatCanBeSetByNonModerators"] = 40066] = "ThereAreNoTagsAvailableThatCanBeSetByNonModerators";
|
970
990
|
JSONErrorCodes[JSONErrorCodes["TagRequiredToCreateAForumPostInThisChannel"] = 40067] = "TagRequiredToCreateAForumPostInThisChannel";
|
971
991
|
JSONErrorCodes[JSONErrorCodes["AnEntitlementHasAlreadyBeenGrantedForThisResource"] = 40074] = "AnEntitlementHasAlreadyBeenGrantedForThisResource";
|
992
|
+
JSONErrorCodes[JSONErrorCodes["CloudflareIsBlockingYourRequestThisCanOftenBeResolvedBySettingAProperUserAgent"] = 40333] = "CloudflareIsBlockingYourRequestThisCanOftenBeResolvedBySettingAProperUserAgent";
|
972
993
|
JSONErrorCodes[JSONErrorCodes["MissingAccess"] = 50001] = "MissingAccess";
|
973
994
|
JSONErrorCodes[JSONErrorCodes["InvalidAccountType"] = 50002] = "InvalidAccountType";
|
974
995
|
JSONErrorCodes[JSONErrorCodes["CannotExecuteActionOnDMChannel"] = 50003] = "CannotExecuteActionOnDMChannel";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { AllowedMentionTypes, ApplicationIntegrationTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, InteractionType, InviteTargetTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
|
2
|
-
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, MessageInteraction, StickerItem, Sticker, Emoji, User, Application, GuildMember, RawActionRow, ActionRow, RawResolvedData, ResolvedData,
|
2
|
+
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, MessageInteraction, StickerItem, Sticker, Emoji, User, Application, GuildMember, RawActionRow, ActionRow, RawResolvedData, ResolvedData, PollCreateParams, Poll, RawPoll } from ".";
|
3
3
|
import type { File } from "../rest";
|
4
4
|
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
|
5
5
|
export interface RawChannel {
|
@@ -74,7 +74,8 @@ export interface RawMessage {
|
|
74
74
|
position?: number;
|
75
75
|
role_subscription_data?: RawRoleSubscriptionData;
|
76
76
|
resolved?: RawResolvedData;
|
77
|
-
poll?:
|
77
|
+
poll?: RawPoll;
|
78
|
+
call?: RawMessageCall;
|
78
79
|
}
|
79
80
|
/** https://discord.com/developers/docs/resources/channel#message-object-message-activity-structure */
|
80
81
|
export interface RawMessageActivity {
|
@@ -91,6 +92,11 @@ export interface RawMessageInteractionMetadata {
|
|
91
92
|
interacted_message_id?: string;
|
92
93
|
triggering_interaction_metadata?: RawMessageInteractionMetadata;
|
93
94
|
}
|
95
|
+
/** https://discord.com/developers/docs/resources/channel#message-call-object-message-call-structure */
|
96
|
+
export interface RawMessageCall {
|
97
|
+
partecipants: Array<string>;
|
98
|
+
ended_timestamp?: string | null;
|
99
|
+
}
|
94
100
|
/** https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */
|
95
101
|
export interface RawMessageReference {
|
96
102
|
message_id?: string;
|
@@ -323,7 +329,8 @@ export interface Message {
|
|
323
329
|
position?: number;
|
324
330
|
roleSubscriptionData?: RoleSubscriptionData;
|
325
331
|
resolved?: ResolvedData;
|
326
|
-
poll?:
|
332
|
+
poll?: Poll;
|
333
|
+
call?: MessageCall;
|
327
334
|
}
|
328
335
|
export interface MessageActivity {
|
329
336
|
type: MessageActivityTypes;
|
@@ -336,6 +343,11 @@ export interface MessageInteractionMetadata {
|
|
336
343
|
authorizingIntegrationOwners: Record<ApplicationIntegrationTypes, string>;
|
337
344
|
originalResponseMessageId?: string;
|
338
345
|
interactedMessageId?: string;
|
346
|
+
triggeringInteractionMetadata?: MessageInteractionMetadata;
|
347
|
+
}
|
348
|
+
export interface MessageCall {
|
349
|
+
partecipants: Array<string>;
|
350
|
+
endedTimestamp?: string | null;
|
339
351
|
}
|
340
352
|
export interface MessageReference {
|
341
353
|
messageId?: string;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { ActivityFlags, ActivityType, InviteTargetTypes, StatusTypes, TriggerTypes } from "../constants";
|
1
|
+
import type { ActivityFlags, ActivityType, GuildMemberFlags, InviteTargetTypes, ReactionTypes, StatusTypes, TriggerTypes } from "../constants";
|
2
2
|
import type { RawApplication, RawAutoModerationAction, RawChannel, RawEmoji, RawGuildMember, RawThreadMember, RawUser, AutoModerationAction, ThreadMember, Channel, Emoji, User, GuildMember, RawVoiceState, RawStageInstance, RawGuildScheduledEvent, VoiceState, StageInstance, GuildScheduledEvent, Application } from ".";
|
3
3
|
/** https://discord.com/developers/docs/topics/gateway-events#auto-moderation-action-execution-auto-moderation-action-execution-event-fields */
|
4
4
|
export interface RawAutoModerationActionExectionEventFields {
|
@@ -53,6 +53,10 @@ export interface RawGuildCreateEventExtraFields {
|
|
53
53
|
stage_instances?: Array<RawStageInstance>;
|
54
54
|
guild_scheduled_events?: Array<RawGuildScheduledEvent>;
|
55
55
|
}
|
56
|
+
/** https://discord.com/developers/docs/topics/gateway-events#guild-audit-log-entry-create-guild-audit-log-entry-create-extra-fields */
|
57
|
+
export interface RawGuildAuditLogEntryCreateExtraFields {
|
58
|
+
guild_id: string;
|
59
|
+
}
|
56
60
|
/** https://discord.com/developers/docs/topics/gateway-events#guild-ban-add-guild-ban-add-event-fields */
|
57
61
|
export interface RawGuildBanAddEventFields {
|
58
62
|
guild_id: string;
|
@@ -89,6 +93,7 @@ export interface RawGuildMemberUpdateEventFields {
|
|
89
93
|
mute?: boolean;
|
90
94
|
pending?: boolean;
|
91
95
|
communication_disabled_until?: number | null;
|
96
|
+
flags?: GuildMemberFlags;
|
92
97
|
}
|
93
98
|
/** https://discord.com/developers/docs/topics/gateway-events#guild-members-chunk-guild-members-chunk-event-fields */
|
94
99
|
export interface RawGuildMembersChunkEventFields {
|
@@ -162,6 +167,9 @@ export interface RawMessageReactionAddEventFields {
|
|
162
167
|
member?: RawGuildMember;
|
163
168
|
emoji: RawEmoji;
|
164
169
|
message_author_id?: string;
|
170
|
+
burst: boolean;
|
171
|
+
burst_colors?: Array<string>;
|
172
|
+
type: ReactionTypes;
|
165
173
|
}
|
166
174
|
/** https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-message-reaction-remove-event-fields */
|
167
175
|
export interface RawMessageReactionRemoveEventFields {
|
@@ -170,6 +178,8 @@ export interface RawMessageReactionRemoveEventFields {
|
|
170
178
|
message_id: string;
|
171
179
|
guild_id?: string;
|
172
180
|
emoji: RawEmoji;
|
181
|
+
burst: boolean;
|
182
|
+
type: ReactionTypes;
|
173
183
|
}
|
174
184
|
/** https://discord.com/developers/docs/topics/gateway-events#message-reaction-remove-all-message-reaction-remove-all-event-fields */
|
175
185
|
export interface RawMessageReactionRemoveAllEventFields {
|
@@ -320,6 +330,9 @@ export interface GuildCreateEventExtraFields {
|
|
320
330
|
stageInstances?: Array<StageInstance>;
|
321
331
|
guildScheduledEvents?: Array<GuildScheduledEvent>;
|
322
332
|
}
|
333
|
+
export interface GuildAuditLogEntryCreateExtraFields {
|
334
|
+
guildId: string;
|
335
|
+
}
|
323
336
|
export interface GuildBanAddEventFields {
|
324
337
|
guildId: string;
|
325
338
|
user: User;
|
@@ -350,6 +363,7 @@ export interface GuildMemberUpdateEventFields {
|
|
350
363
|
mute?: boolean;
|
351
364
|
pending?: boolean;
|
352
365
|
communicationDisabledUntil?: number | null;
|
366
|
+
flags?: GuildMemberFlags;
|
353
367
|
}
|
354
368
|
export interface GuildMembersChunkEventFields {
|
355
369
|
guildId: string;
|
@@ -413,6 +427,9 @@ export interface MessageReactionAddEventFields {
|
|
413
427
|
member?: GuildMember;
|
414
428
|
emoji: Emoji;
|
415
429
|
messageAuthorId?: string;
|
430
|
+
burst: boolean;
|
431
|
+
burstColors?: Array<string>;
|
432
|
+
type: ReactionTypes;
|
416
433
|
}
|
417
434
|
export interface MessageReactionRemoveEventFields {
|
418
435
|
userId: string;
|
@@ -420,6 +437,8 @@ export interface MessageReactionRemoveEventFields {
|
|
420
437
|
messageId: string;
|
421
438
|
guildId?: string;
|
422
439
|
emoji: Emoji;
|
440
|
+
burst: boolean;
|
441
|
+
type: ReactionTypes;
|
423
442
|
}
|
424
443
|
export interface MessageReactionRemoveAllEventFields {
|
425
444
|
channelId: string;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import type { Application, Channel, Guild, GuildMember, GuildScheduledEvent, User, RawApplication, RawChannel, RawGuild, RawGuildMember, RawGuildScheduledEvent, RawUser } from ".";
|
2
|
-
import type { InviteTargetTypes } from "../constants";
|
2
|
+
import type { InviteTargetTypes, InviteTypes } from "../constants";
|
3
3
|
/** https://discord.com/developers/docs/resources/invite#invite-object-invite-structure */
|
4
4
|
export interface RawInvite {
|
5
|
+
type: InviteTypes;
|
5
6
|
code: string;
|
6
7
|
guild?: RawGuild;
|
7
8
|
channel: RawChannel;
|
@@ -31,6 +32,7 @@ export interface RawInviteStageInstance {
|
|
31
32
|
topic: string;
|
32
33
|
}
|
33
34
|
export interface Invite {
|
35
|
+
type: InviteTypes;
|
34
36
|
code: string;
|
35
37
|
guild?: Guild;
|
36
38
|
channel: Channel;
|
package/dist/lib/types/user.d.ts
CHANGED
package/dist/package.json
CHANGED