seyfert 1.3.3 → 1.5.0
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 +7 -7
- package/lib/api/Router.js +3 -1
- package/lib/api/Routes/guilds.d.ts +4 -1
- package/lib/api/api.js +13 -7
- package/lib/builders/Attachment.d.ts +1 -4
- package/lib/builders/Attachment.js +4 -4
- package/lib/cache/adapters/workeradapter.js +7 -3
- package/lib/cache/index.d.ts +6 -2
- package/lib/cache/index.js +18 -0
- package/lib/cache/resources/bans.d.ts +12 -0
- package/lib/cache/resources/bans.js +35 -0
- package/lib/cache/resources/default/base.d.ts +1 -2
- package/lib/cache/resources/default/guild-based.d.ts +1 -2
- package/lib/cache/resources/members.js +4 -4
- package/lib/cache/resources/messages.js +8 -6
- package/lib/client/base.d.ts +33 -7
- package/lib/client/base.js +80 -21
- package/lib/client/client.d.ts +18 -6
- package/lib/client/client.js +45 -37
- package/lib/client/collectors.d.ts +36 -0
- package/lib/client/collectors.js +85 -0
- package/lib/client/httpclient.d.ts +7 -8
- package/lib/client/httpclient.js +96 -17
- package/lib/client/oninteractioncreate.d.ts +2 -2
- package/lib/client/oninteractioncreate.js +15 -7
- package/lib/client/onmessagecreate.d.ts +12 -2
- package/lib/client/onmessagecreate.js +105 -82
- package/lib/client/workerclient.d.ts +5 -2
- package/lib/client/workerclient.js +66 -63
- package/lib/collection.d.ts +2 -2
- package/lib/collection.js +2 -2
- package/lib/commands/applications/chat.d.ts +11 -10
- package/lib/commands/applications/chat.js +23 -8
- package/lib/commands/applications/chatcontext.d.ts +1 -1
- package/lib/commands/applications/chatcontext.js +2 -2
- package/lib/commands/applications/menu.d.ts +8 -7
- package/lib/commands/applications/menu.js +3 -50
- package/lib/commands/applications/menucontext.d.ts +1 -1
- package/lib/commands/applications/menucontext.js +3 -3
- package/lib/commands/applications/options.d.ts +3 -1
- package/lib/commands/applications/shared.d.ts +12 -0
- package/lib/commands/basecontext.d.ts +26 -0
- package/lib/commands/{basecontex.js → basecontext.js} +24 -0
- package/lib/commands/decorators.d.ts +11 -17
- package/lib/commands/decorators.js +7 -14
- package/lib/commands/handler.d.ts +6 -1
- package/lib/commands/handler.js +161 -29
- package/lib/common/bot/watcher.d.ts +1 -2
- package/lib/common/bot/watcher.js +9 -4
- package/lib/common/index.d.ts +1 -0
- package/lib/common/index.js +3 -1
- package/lib/common/it/formatter.d.ts +155 -0
- package/lib/common/it/formatter.js +184 -0
- package/lib/common/it/logger.d.ts +1 -1
- package/lib/common/it/logger.js +14 -13
- package/lib/common/it/utils.d.ts +2 -0
- package/lib/common/it/utils.js +21 -9
- package/lib/common/shorters/bans.d.ts +43 -0
- package/lib/common/shorters/bans.js +78 -0
- package/lib/common/shorters/emojis.d.ts +1 -1
- package/lib/common/shorters/emojis.js +4 -3
- package/lib/common/shorters/interaction.js +9 -7
- package/lib/common/shorters/messages.js +2 -2
- package/lib/common/shorters/webhook.js +2 -2
- package/lib/components/componentcommand.d.ts +22 -0
- package/lib/components/{command.js → componentcommand.js} +3 -5
- package/lib/components/componentcontext.d.ts +20 -16
- package/lib/components/componentcontext.js +27 -9
- package/lib/components/handler.d.ts +11 -6
- package/lib/components/handler.js +106 -32
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +3 -1
- package/lib/components/modalcommand.d.ts +16 -0
- package/lib/components/modalcommand.js +10 -0
- package/lib/components/modalcontext.d.ts +104 -0
- package/lib/components/modalcontext.js +132 -0
- package/lib/events/event.d.ts +4 -3
- package/lib/events/handler.d.ts +12 -6
- package/lib/events/handler.js +60 -20
- package/lib/events/hooks/application_command.d.ts +2 -2
- package/lib/events/hooks/auto_moderation.d.ts +5 -5
- package/lib/events/hooks/channel.d.ts +5 -5
- package/lib/events/hooks/custom.d.ts +3 -3
- package/lib/events/hooks/dispatch.d.ts +4 -4
- package/lib/events/hooks/entitlement.d.ts +4 -4
- package/lib/events/hooks/guild.d.ts +41 -96
- package/lib/events/hooks/guild.js +6 -6
- package/lib/events/hooks/integration.d.ts +61 -4
- package/lib/events/hooks/interactions.d.ts +2 -2
- package/lib/events/hooks/invite.d.ts +6 -3
- package/lib/events/hooks/message.d.ts +23 -18
- package/lib/events/hooks/message.js +1 -1
- package/lib/events/hooks/presence.d.ts +11 -3
- package/lib/events/hooks/presence.js +2 -2
- package/lib/events/hooks/stage.d.ts +7 -13
- package/lib/events/hooks/stage.js +2 -2
- package/lib/events/hooks/thread.d.ts +21 -10
- package/lib/events/hooks/thread.js +2 -2
- package/lib/events/hooks/typing.d.ts +3 -2
- package/lib/events/hooks/user.d.ts +2 -2
- package/lib/events/hooks/user.js +2 -2
- package/lib/events/hooks/voice.d.ts +5 -45
- package/lib/events/hooks/voice.js +4 -7
- package/lib/events/hooks/webhook.d.ts +2 -2
- package/lib/index.d.ts +4 -4
- package/lib/index.js +11 -5
- package/lib/langs/handler.d.ts +4 -1
- package/lib/langs/handler.js +3 -3
- package/lib/structures/Guild.d.ts +9 -1
- package/lib/structures/Guild.js +2 -0
- package/lib/structures/GuildBan.d.ts +25 -0
- package/lib/structures/GuildBan.js +36 -0
- package/lib/structures/GuildEmoji.d.ts +1 -1
- package/lib/structures/GuildMember.d.ts +7 -2
- package/lib/structures/GuildMember.js +4 -4
- package/lib/structures/Interaction.d.ts +4 -3
- package/lib/structures/Interaction.js +29 -12
- package/lib/structures/Message.d.ts +69 -8
- package/lib/structures/Message.js +59 -17
- package/lib/structures/Sticker.d.ts +3 -3
- package/lib/structures/User.d.ts +1 -0
- package/lib/structures/User.js +4 -1
- package/lib/structures/VoiceState.d.ts +6 -5
- package/lib/structures/VoiceState.js +6 -3
- package/lib/structures/channels.d.ts +4 -1
- package/lib/structures/channels.js +37 -6
- package/lib/structures/extra/functions.js +1 -1
- package/lib/websocket/discord/basesocket.d.ts +1 -0
- package/lib/websocket/discord/basesocket.js +17 -0
- package/lib/websocket/discord/shard.d.ts +1 -0
- package/lib/websocket/discord/shard.js +6 -0
- package/lib/websocket/discord/sharder.js +10 -3
- package/lib/websocket/discord/shared.d.ts +1 -0
- package/lib/websocket/discord/workermanager.d.ts +2 -3
- package/lib/websocket/discord/workermanager.js +4 -2
- package/package.json +7 -7
- package/lib/commands/basecontex.d.ts +0 -15
- package/lib/components/command.d.ts +0 -24
|
@@ -1,96 +1,28 @@
|
|
|
1
1
|
import type { GatewayGuildAuditLogEntryCreateDispatchData, GatewayGuildBanAddDispatchData, GatewayGuildBanRemoveDispatchData, GatewayGuildCreateDispatchData, GatewayGuildDeleteDispatchData, GatewayGuildEmojisUpdateDispatchData, GatewayGuildIntegrationsUpdateDispatchData, GatewayGuildMemberRemoveDispatchData, GatewayGuildMemberUpdateDispatchData, GatewayGuildMembersChunkDispatchData, GatewayGuildRoleCreateDispatchData, GatewayGuildRoleDeleteDispatchData, GatewayGuildRoleUpdateDispatchData, GatewayGuildScheduledEventCreateDispatchData, GatewayGuildScheduledEventDeleteDispatchData, GatewayGuildScheduledEventUpdateDispatchData, GatewayGuildScheduledEventUserAddDispatchData, GatewayGuildScheduledEventUserRemoveDispatchData, GatewayGuildStickersUpdateDispatchData, GatewayGuildUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
|
-
import type { BaseClient } from '../../client/base';
|
|
3
2
|
import { Guild, GuildEmoji, GuildMember, GuildRole, Sticker, UnavailableMember, User, type GatewayGuildMemberAddDispatchDataFixed } from '../../structures';
|
|
4
|
-
|
|
3
|
+
import type { UsingClient } from '../../commands';
|
|
4
|
+
export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: UsingClient, data: GatewayGuildAuditLogEntryCreateDispatchData) => {
|
|
5
5
|
guildId: string;
|
|
6
6
|
targetId: string | null;
|
|
7
7
|
changes?: ({
|
|
8
8
|
key: "$add";
|
|
9
9
|
newValue?: {
|
|
10
|
-
id: string;
|
|
11
10
|
name: string;
|
|
12
|
-
|
|
13
|
-
hoist: boolean;
|
|
14
|
-
icon?: string | null | undefined;
|
|
15
|
-
unicodeEmoji?: string | null | undefined;
|
|
16
|
-
position: number;
|
|
17
|
-
permissions: string;
|
|
18
|
-
managed: boolean;
|
|
19
|
-
mentionable: boolean;
|
|
20
|
-
tags?: {
|
|
21
|
-
botId?: string | undefined;
|
|
22
|
-
premiumSubscriber?: null | undefined;
|
|
23
|
-
integrationId?: string | undefined;
|
|
24
|
-
subscriptionListingId?: string | undefined;
|
|
25
|
-
availableForPurchase?: null | undefined;
|
|
26
|
-
guildConnections?: null | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
11
|
+
id: string;
|
|
29
12
|
}[] | undefined;
|
|
30
13
|
oldValue?: {
|
|
31
|
-
id: string;
|
|
32
14
|
name: string;
|
|
33
|
-
|
|
34
|
-
hoist: boolean;
|
|
35
|
-
icon?: string | null | undefined;
|
|
36
|
-
unicodeEmoji?: string | null | undefined;
|
|
37
|
-
position: number;
|
|
38
|
-
permissions: string;
|
|
39
|
-
managed: boolean;
|
|
40
|
-
mentionable: boolean;
|
|
41
|
-
tags?: {
|
|
42
|
-
botId?: string | undefined;
|
|
43
|
-
premiumSubscriber?: null | undefined;
|
|
44
|
-
integrationId?: string | undefined;
|
|
45
|
-
subscriptionListingId?: string | undefined;
|
|
46
|
-
availableForPurchase?: null | undefined;
|
|
47
|
-
guildConnections?: null | undefined;
|
|
48
|
-
} | undefined;
|
|
49
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
15
|
+
id: string;
|
|
50
16
|
}[] | undefined;
|
|
51
17
|
} | {
|
|
52
18
|
key: "$remove";
|
|
53
19
|
newValue?: {
|
|
54
|
-
id: string;
|
|
55
20
|
name: string;
|
|
56
|
-
|
|
57
|
-
hoist: boolean;
|
|
58
|
-
icon?: string | null | undefined;
|
|
59
|
-
unicodeEmoji?: string | null | undefined;
|
|
60
|
-
position: number;
|
|
61
|
-
permissions: string;
|
|
62
|
-
managed: boolean;
|
|
63
|
-
mentionable: boolean;
|
|
64
|
-
tags?: {
|
|
65
|
-
botId?: string | undefined;
|
|
66
|
-
premiumSubscriber?: null | undefined;
|
|
67
|
-
integrationId?: string | undefined;
|
|
68
|
-
subscriptionListingId?: string | undefined;
|
|
69
|
-
availableForPurchase?: null | undefined;
|
|
70
|
-
guildConnections?: null | undefined;
|
|
71
|
-
} | undefined;
|
|
72
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
21
|
+
id: string;
|
|
73
22
|
}[] | undefined;
|
|
74
23
|
oldValue?: {
|
|
75
|
-
id: string;
|
|
76
24
|
name: string;
|
|
77
|
-
|
|
78
|
-
hoist: boolean;
|
|
79
|
-
icon?: string | null | undefined;
|
|
80
|
-
unicodeEmoji?: string | null | undefined;
|
|
81
|
-
position: number;
|
|
82
|
-
permissions: string;
|
|
83
|
-
managed: boolean;
|
|
84
|
-
mentionable: boolean;
|
|
85
|
-
tags?: {
|
|
86
|
-
botId?: string | undefined;
|
|
87
|
-
premiumSubscriber?: null | undefined;
|
|
88
|
-
integrationId?: string | undefined;
|
|
89
|
-
subscriptionListingId?: string | undefined;
|
|
90
|
-
availableForPurchase?: null | undefined;
|
|
91
|
-
guildConnections?: null | undefined;
|
|
92
|
-
} | undefined;
|
|
93
|
-
flags: import("discord-api-types/v10").RoleFlags;
|
|
25
|
+
id: string;
|
|
94
26
|
}[] | undefined;
|
|
95
27
|
} | {
|
|
96
28
|
key: "actions";
|
|
@@ -470,7 +402,7 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: BaseClient, data: Gat
|
|
|
470
402
|
actionType: import("discord-api-types/v10").AuditLogEvent;
|
|
471
403
|
options?: {
|
|
472
404
|
autoModerationRuleName?: string | undefined;
|
|
473
|
-
autoModerationRuleTriggerType?: "1" | "3" | "4" | "5" | undefined;
|
|
405
|
+
autoModerationRuleTriggerType?: "1" | "3" | "4" | "5" | "6" | undefined;
|
|
474
406
|
deleteMemberDays?: string | undefined;
|
|
475
407
|
membersRemoved?: string | undefined;
|
|
476
408
|
channelId?: string | undefined;
|
|
@@ -483,29 +415,29 @@ export declare const GUILD_AUDIT_LOG_ENTRY_CREATE: (_self: BaseClient, data: Gat
|
|
|
483
415
|
} | undefined;
|
|
484
416
|
reason?: string | undefined;
|
|
485
417
|
};
|
|
486
|
-
export declare const GUILD_BAN_ADD: (self:
|
|
418
|
+
export declare const GUILD_BAN_ADD: (self: UsingClient, data: GatewayGuildBanAddDispatchData) => {
|
|
487
419
|
user: User;
|
|
488
420
|
guildId: string;
|
|
489
421
|
};
|
|
490
|
-
export declare const GUILD_BAN_REMOVE: (self:
|
|
422
|
+
export declare const GUILD_BAN_REMOVE: (self: UsingClient, data: GatewayGuildBanRemoveDispatchData) => {
|
|
491
423
|
user: User;
|
|
492
424
|
guildId: string;
|
|
493
425
|
};
|
|
494
|
-
export declare const GUILD_CREATE: (self:
|
|
495
|
-
export declare const GUILD_DELETE: (self:
|
|
496
|
-
export declare const GUILD_EMOJIS_UPDATE: (self:
|
|
426
|
+
export declare const GUILD_CREATE: (self: UsingClient, data: GatewayGuildCreateDispatchData) => Guild<"create">;
|
|
427
|
+
export declare const GUILD_DELETE: (self: UsingClient, data: GatewayGuildDeleteDispatchData) => Promise<import("discord-api-types/v10").APIUnavailableGuild | Guild<"cached">>;
|
|
428
|
+
export declare const GUILD_EMOJIS_UPDATE: (self: UsingClient, data: GatewayGuildEmojisUpdateDispatchData) => {
|
|
497
429
|
emojis: GuildEmoji[];
|
|
498
430
|
guildId: string;
|
|
499
431
|
};
|
|
500
|
-
export declare const GUILD_INTEGRATIONS_UPDATE: (_self:
|
|
432
|
+
export declare const GUILD_INTEGRATIONS_UPDATE: (_self: UsingClient, data: GatewayGuildIntegrationsUpdateDispatchData) => {
|
|
501
433
|
guildId: string;
|
|
502
434
|
};
|
|
503
|
-
export declare const GUILD_MEMBER_ADD: (self:
|
|
504
|
-
export declare const GUILD_MEMBER_REMOVE: (self:
|
|
435
|
+
export declare const GUILD_MEMBER_ADD: (self: UsingClient, data: GatewayGuildMemberAddDispatchDataFixed<boolean>) => GuildMember | UnavailableMember;
|
|
436
|
+
export declare const GUILD_MEMBER_REMOVE: (self: UsingClient, data: GatewayGuildMemberRemoveDispatchData) => {
|
|
505
437
|
user: User;
|
|
506
438
|
guildId: string;
|
|
507
439
|
};
|
|
508
|
-
export declare const GUILD_MEMBERS_CHUNK: (self:
|
|
440
|
+
export declare const GUILD_MEMBERS_CHUNK: (self: UsingClient, data: GatewayGuildMembersChunkDispatchData) => {
|
|
509
441
|
members: GuildMember[];
|
|
510
442
|
guildId: string;
|
|
511
443
|
chunkIndex: number;
|
|
@@ -530,6 +462,10 @@ export declare const GUILD_MEMBERS_CHUNK: (self: BaseClient, data: GatewayGuildM
|
|
|
530
462
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
531
463
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
532
464
|
avatarDecoration?: string | null | undefined;
|
|
465
|
+
avatarDecorationData?: {
|
|
466
|
+
asset: string;
|
|
467
|
+
skuId: string;
|
|
468
|
+
} | null | undefined;
|
|
533
469
|
};
|
|
534
470
|
status?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
535
471
|
activities?: {
|
|
@@ -583,8 +519,8 @@ export declare const GUILD_MEMBERS_CHUNK: (self: BaseClient, data: GatewayGuildM
|
|
|
583
519
|
}[] | undefined;
|
|
584
520
|
nonce?: string | undefined;
|
|
585
521
|
};
|
|
586
|
-
export declare const GUILD_MEMBER_UPDATE: (self:
|
|
587
|
-
export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self:
|
|
522
|
+
export declare const GUILD_MEMBER_UPDATE: (self: UsingClient, data: GatewayGuildMemberUpdateDispatchData) => Promise<[member: GuildMember, old?: GuildMember]>;
|
|
523
|
+
export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: UsingClient, data: GatewayGuildScheduledEventCreateDispatchData) => {
|
|
588
524
|
channelId: string;
|
|
589
525
|
entityMetadata: undefined;
|
|
590
526
|
id: string;
|
|
@@ -616,6 +552,7 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
616
552
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
617
553
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
618
554
|
avatarDecoration?: string | null | undefined;
|
|
555
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
619
556
|
} | undefined;
|
|
620
557
|
userCount?: number | undefined;
|
|
621
558
|
image?: string | null | undefined;
|
|
@@ -651,6 +588,7 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
651
588
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
652
589
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
653
590
|
avatarDecoration?: string | null | undefined;
|
|
591
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
654
592
|
} | undefined;
|
|
655
593
|
userCount?: number | undefined;
|
|
656
594
|
image?: string | null | undefined;
|
|
@@ -688,11 +626,12 @@ export declare const GUILD_SCHEDULED_EVENT_CREATE: (_self: BaseClient, data: Gat
|
|
|
688
626
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
689
627
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
690
628
|
avatarDecoration?: string | null | undefined;
|
|
629
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
691
630
|
} | undefined;
|
|
692
631
|
userCount?: number | undefined;
|
|
693
632
|
image?: string | null | undefined;
|
|
694
633
|
};
|
|
695
|
-
export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self:
|
|
634
|
+
export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: UsingClient, data: GatewayGuildScheduledEventUpdateDispatchData) => {
|
|
696
635
|
channelId: string;
|
|
697
636
|
entityMetadata: undefined;
|
|
698
637
|
id: string;
|
|
@@ -724,6 +663,7 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
724
663
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
725
664
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
726
665
|
avatarDecoration?: string | null | undefined;
|
|
666
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
727
667
|
} | undefined;
|
|
728
668
|
userCount?: number | undefined;
|
|
729
669
|
image?: string | null | undefined;
|
|
@@ -759,6 +699,7 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
759
699
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
760
700
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
761
701
|
avatarDecoration?: string | null | undefined;
|
|
702
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
762
703
|
} | undefined;
|
|
763
704
|
userCount?: number | undefined;
|
|
764
705
|
image?: string | null | undefined;
|
|
@@ -796,11 +737,12 @@ export declare const GUILD_SCHEDULED_EVENT_UPDATE: (_self: BaseClient, data: Gat
|
|
|
796
737
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
797
738
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
798
739
|
avatarDecoration?: string | null | undefined;
|
|
740
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
799
741
|
} | undefined;
|
|
800
742
|
userCount?: number | undefined;
|
|
801
743
|
image?: string | null | undefined;
|
|
802
744
|
};
|
|
803
|
-
export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self:
|
|
745
|
+
export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: UsingClient, data: GatewayGuildScheduledEventDeleteDispatchData) => {
|
|
804
746
|
channelId: string;
|
|
805
747
|
entityMetadata: undefined;
|
|
806
748
|
id: string;
|
|
@@ -832,6 +774,7 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
832
774
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
833
775
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
834
776
|
avatarDecoration?: string | null | undefined;
|
|
777
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
835
778
|
} | undefined;
|
|
836
779
|
userCount?: number | undefined;
|
|
837
780
|
image?: string | null | undefined;
|
|
@@ -867,6 +810,7 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
867
810
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
868
811
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
869
812
|
avatarDecoration?: string | null | undefined;
|
|
813
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
870
814
|
} | undefined;
|
|
871
815
|
userCount?: number | undefined;
|
|
872
816
|
image?: string | null | undefined;
|
|
@@ -904,28 +848,29 @@ export declare const GUILD_SCHEDULED_EVENT_DELETE: (_self: BaseClient, data: Gat
|
|
|
904
848
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
905
849
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
906
850
|
avatarDecoration?: string | null | undefined;
|
|
851
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
907
852
|
} | undefined;
|
|
908
853
|
userCount?: number | undefined;
|
|
909
854
|
image?: string | null | undefined;
|
|
910
855
|
};
|
|
911
|
-
export declare const GUILD_SCHEDULED_EVENT_USER_ADD: (_self:
|
|
856
|
+
export declare const GUILD_SCHEDULED_EVENT_USER_ADD: (_self: UsingClient, data: GatewayGuildScheduledEventUserAddDispatchData) => {
|
|
912
857
|
guildScheduledEventId: string;
|
|
913
858
|
userId: string;
|
|
914
859
|
guildId: string;
|
|
915
860
|
};
|
|
916
|
-
export declare const GUILD_SCHEDULED_EVENT_USER_REMOVE: (_self:
|
|
861
|
+
export declare const GUILD_SCHEDULED_EVENT_USER_REMOVE: (_self: UsingClient, data: GatewayGuildScheduledEventUserRemoveDispatchData) => {
|
|
917
862
|
guildScheduledEventId: string;
|
|
918
863
|
userId: string;
|
|
919
864
|
guildId: string;
|
|
920
865
|
};
|
|
921
|
-
export declare const GUILD_ROLE_CREATE: (self:
|
|
922
|
-
export declare const GUILD_ROLE_DELETE: (
|
|
866
|
+
export declare const GUILD_ROLE_CREATE: (self: UsingClient, data: GatewayGuildRoleCreateDispatchData) => GuildRole;
|
|
867
|
+
export declare const GUILD_ROLE_DELETE: (self: UsingClient, data: GatewayGuildRoleDeleteDispatchData) => Promise<GuildRole | {
|
|
923
868
|
guildId: string;
|
|
924
869
|
roleId: string;
|
|
925
|
-
}
|
|
926
|
-
export declare const GUILD_ROLE_UPDATE: (self:
|
|
927
|
-
export declare const GUILD_STICKERS_UPDATE: (self:
|
|
870
|
+
}>;
|
|
871
|
+
export declare const GUILD_ROLE_UPDATE: (self: UsingClient, data: GatewayGuildRoleUpdateDispatchData) => Promise<[role: GuildRole, old?: GuildRole]>;
|
|
872
|
+
export declare const GUILD_STICKERS_UPDATE: (self: UsingClient, data: GatewayGuildStickersUpdateDispatchData) => {
|
|
928
873
|
stickers: Sticker[];
|
|
929
874
|
guildId: string;
|
|
930
875
|
};
|
|
931
|
-
export declare const GUILD_UPDATE: (self:
|
|
876
|
+
export declare const GUILD_UPDATE: (self: UsingClient, data: GatewayGuildUpdateDispatchData) => Promise<[guild: Guild, old?: Guild<'cached'>]>;
|
|
@@ -80,12 +80,12 @@ const GUILD_ROLE_CREATE = (self, data) => {
|
|
|
80
80
|
return new structures_1.GuildRole(self, data.role, data.guild_id);
|
|
81
81
|
};
|
|
82
82
|
exports.GUILD_ROLE_CREATE = GUILD_ROLE_CREATE;
|
|
83
|
-
const GUILD_ROLE_DELETE = (
|
|
84
|
-
return (0, common_1.toCamelCase)(data);
|
|
83
|
+
const GUILD_ROLE_DELETE = async (self, data) => {
|
|
84
|
+
return (await self.cache.roles?.get(data.role_id)) || (0, common_1.toCamelCase)(data);
|
|
85
85
|
};
|
|
86
86
|
exports.GUILD_ROLE_DELETE = GUILD_ROLE_DELETE;
|
|
87
|
-
const GUILD_ROLE_UPDATE = (self, data) => {
|
|
88
|
-
return new structures_1.GuildRole(self, data.role, data.guild_id);
|
|
87
|
+
const GUILD_ROLE_UPDATE = async (self, data) => {
|
|
88
|
+
return [new structures_1.GuildRole(self, data.role, data.guild_id), await self.cache.roles?.get(data.role.id)];
|
|
89
89
|
};
|
|
90
90
|
exports.GUILD_ROLE_UPDATE = GUILD_ROLE_UPDATE;
|
|
91
91
|
const GUILD_STICKERS_UPDATE = (self, data) => {
|
|
@@ -95,7 +95,7 @@ const GUILD_STICKERS_UPDATE = (self, data) => {
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
exports.GUILD_STICKERS_UPDATE = GUILD_STICKERS_UPDATE;
|
|
98
|
-
const GUILD_UPDATE = (self, data) => {
|
|
99
|
-
return new structures_1.Guild(self, data);
|
|
98
|
+
const GUILD_UPDATE = async (self, data) => {
|
|
99
|
+
return [new structures_1.Guild(self, data), await self.cache.guilds?.get(data.id)];
|
|
100
100
|
};
|
|
101
101
|
exports.GUILD_UPDATE = GUILD_UPDATE;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import { User } from '../../structures';
|
|
3
|
+
import type { UsingClient } from '../../commands';
|
|
4
|
+
export declare const INTEGRATION_CREATE: (self: UsingClient, data: GatewayIntegrationCreateDispatchData) => {
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
6
7
|
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
@@ -28,6 +29,7 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
28
29
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
29
30
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
30
31
|
avatarDecoration?: string | null | undefined;
|
|
32
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
31
33
|
} | undefined;
|
|
32
34
|
account: {
|
|
33
35
|
id: string;
|
|
@@ -45,8 +47,35 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
45
47
|
} | undefined;
|
|
46
48
|
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
47
49
|
guildId: string;
|
|
50
|
+
} | {
|
|
51
|
+
user: User;
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
syncing?: boolean | undefined;
|
|
57
|
+
roleId?: string | undefined;
|
|
58
|
+
enableEmoticons?: boolean | undefined;
|
|
59
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
60
|
+
expireGracePeriod?: number | undefined;
|
|
61
|
+
account: {
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
65
|
+
syncedAt?: string | undefined;
|
|
66
|
+
subscriberCount?: number | undefined;
|
|
67
|
+
revoked?: boolean | undefined;
|
|
68
|
+
application?: {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
icon: string | null;
|
|
72
|
+
description: string;
|
|
73
|
+
bot?: import("discord-api-types/v10").APIUser | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
76
|
+
guildId: string;
|
|
48
77
|
};
|
|
49
|
-
export declare const INTEGRATION_UPDATE: (self:
|
|
78
|
+
export declare const INTEGRATION_UPDATE: (self: UsingClient, data: GatewayIntegrationUpdateDispatchData) => {
|
|
50
79
|
id: string;
|
|
51
80
|
name: string;
|
|
52
81
|
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
@@ -74,6 +103,7 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
74
103
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
75
104
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
76
105
|
avatarDecoration?: string | null | undefined;
|
|
106
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
77
107
|
} | undefined;
|
|
78
108
|
account: {
|
|
79
109
|
id: string;
|
|
@@ -91,8 +121,35 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
91
121
|
} | undefined;
|
|
92
122
|
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
93
123
|
guildId: string;
|
|
124
|
+
} | {
|
|
125
|
+
user: User;
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
129
|
+
enabled: boolean;
|
|
130
|
+
syncing?: boolean | undefined;
|
|
131
|
+
roleId?: string | undefined;
|
|
132
|
+
enableEmoticons?: boolean | undefined;
|
|
133
|
+
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
134
|
+
expireGracePeriod?: number | undefined;
|
|
135
|
+
account: {
|
|
136
|
+
id: string;
|
|
137
|
+
name: string;
|
|
138
|
+
};
|
|
139
|
+
syncedAt?: string | undefined;
|
|
140
|
+
subscriberCount?: number | undefined;
|
|
141
|
+
revoked?: boolean | undefined;
|
|
142
|
+
application?: {
|
|
143
|
+
id: string;
|
|
144
|
+
name: string;
|
|
145
|
+
icon: string | null;
|
|
146
|
+
description: string;
|
|
147
|
+
bot?: import("discord-api-types/v10").APIUser | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
150
|
+
guildId: string;
|
|
94
151
|
};
|
|
95
|
-
export declare const INTEGRATION_DELETE: (_self:
|
|
152
|
+
export declare const INTEGRATION_DELETE: (_self: UsingClient, data: GatewayIntegrationDeleteDispatchData) => {
|
|
96
153
|
id: string;
|
|
97
154
|
guildId: string;
|
|
98
155
|
applicationId?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GatewayInteractionCreateDispatchData } from 'discord-api-types/v10';
|
|
2
|
-
import type { BaseClient } from '../../client/base';
|
|
3
2
|
import { BaseInteraction } from '../../structures';
|
|
4
|
-
|
|
3
|
+
import type { UsingClient } from '../../commands';
|
|
4
|
+
export declare const INTERACTION_CREATE: (self: UsingClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").RoleSelectMenuInteraction | import("../../structures").UserSelectMenuInteraction | import("../../structures").MentionableSelectMenuInteraction | import("../../structures").ChannelSelectMenuInteraction | import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | import("../../structures").ChatInputCommandInteraction<boolean> | import("../../structures").UserCommandInteraction<boolean> | import("../../structures").MessageCommandInteraction<boolean> | import("../../structures").ButtonInteraction | import("../../structures").ModalSubmitInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/v10").APIPingInteraction>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GatewayInviteCreateDispatchData, GatewayInviteDeleteDispatchData } from 'discord-api-types/v10';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const INVITE_CREATE: (_self:
|
|
2
|
+
import type { UsingClient } from '../../commands';
|
|
3
|
+
export declare const INVITE_CREATE: (_self: UsingClient, data: GatewayInviteCreateDispatchData) => {
|
|
4
4
|
channelId: string;
|
|
5
5
|
code: string;
|
|
6
6
|
createdAt: number;
|
|
@@ -23,6 +23,7 @@ export declare const INVITE_CREATE: (_self: BaseClient, data: GatewayInviteCreat
|
|
|
23
23
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
24
24
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
25
25
|
avatarDecoration?: string | null | undefined;
|
|
26
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
26
27
|
} | undefined;
|
|
27
28
|
maxAge: number;
|
|
28
29
|
maxUses: number;
|
|
@@ -45,6 +46,7 @@ export declare const INVITE_CREATE: (_self: BaseClient, data: GatewayInviteCreat
|
|
|
45
46
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
46
47
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
47
48
|
avatarDecoration?: string | null | undefined;
|
|
49
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
48
50
|
} | undefined;
|
|
49
51
|
targetApplication?: {
|
|
50
52
|
id?: string | undefined;
|
|
@@ -73,12 +75,13 @@ export declare const INVITE_CREATE: (_self: BaseClient, data: GatewayInviteCreat
|
|
|
73
75
|
roleConnectionsVerificationUrl?: string | undefined;
|
|
74
76
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
75
77
|
installParams?: import("discord-api-types/v10").APIApplicationInstallParams | undefined;
|
|
78
|
+
integrationTypesConfig?: import("discord-api-types/v10").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
76
79
|
customInstallUrl?: string | undefined;
|
|
77
80
|
} | undefined;
|
|
78
81
|
temporary: boolean;
|
|
79
82
|
uses: 0;
|
|
80
83
|
};
|
|
81
|
-
export declare const INVITE_DELETE: (_self:
|
|
84
|
+
export declare const INVITE_DELETE: (_self: UsingClient, data: GatewayInviteDeleteDispatchData) => {
|
|
82
85
|
channelId: string;
|
|
83
86
|
guildId?: string | undefined;
|
|
84
87
|
code: string;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import type { GatewayMessageCreateDispatchData, GatewayMessageDeleteBulkDispatchData, GatewayMessageDeleteDispatchData, GatewayMessagePollVoteDispatchData, GatewayMessageReactionAddDispatchData, GatewayMessageReactionRemoveAllDispatchData, GatewayMessageReactionRemoveDispatchData, GatewayMessageReactionRemoveEmojiDispatchData, GatewayMessageUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
|
-
import type
|
|
3
|
-
import { type MakeRequired, type PartialClass } from '../../common';
|
|
2
|
+
import { type MakeRequired, type PartialClass, type ObjectToLower } from '../../common';
|
|
4
3
|
import { Message } from '../../structures';
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
guildId?: string | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const MESSAGE_DELETE_BULK: (self: BaseClient, data: GatewayMessageDeleteBulkDispatchData) => Promise<{
|
|
4
|
+
import type { UsingClient } from '../../commands';
|
|
5
|
+
export declare const MESSAGE_CREATE: (self: UsingClient, data: GatewayMessageCreateDispatchData) => Message;
|
|
6
|
+
export declare const MESSAGE_DELETE: (self: UsingClient, data: GatewayMessageDeleteDispatchData) => Promise<Message | ObjectToLower<GatewayMessageDeleteDispatchData>>;
|
|
7
|
+
export declare const MESSAGE_DELETE_BULK: (self: UsingClient, data: GatewayMessageDeleteBulkDispatchData) => Promise<{
|
|
12
8
|
messages: import("../..").ReturnCache<Message | undefined>[];
|
|
13
9
|
ids: string[];
|
|
14
10
|
channel_id: string;
|
|
15
11
|
guild_id?: string | undefined;
|
|
16
12
|
}>;
|
|
17
|
-
export declare const MESSAGE_REACTION_ADD: (_self:
|
|
13
|
+
export declare const MESSAGE_REACTION_ADD: (_self: UsingClient, data: GatewayMessageReactionAddDispatchData) => {
|
|
18
14
|
emoji: {
|
|
19
15
|
roles?: string[] | undefined;
|
|
20
16
|
user?: {
|
|
@@ -35,6 +31,7 @@ export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMess
|
|
|
35
31
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
36
32
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
37
33
|
avatarDecoration?: string | null | undefined;
|
|
34
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
38
35
|
} | undefined;
|
|
39
36
|
requireColons?: boolean | undefined;
|
|
40
37
|
managed?: boolean | undefined;
|
|
@@ -43,6 +40,7 @@ export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMess
|
|
|
43
40
|
name: string | null;
|
|
44
41
|
animated?: boolean | undefined;
|
|
45
42
|
};
|
|
43
|
+
type: import("discord-api-types/v10").ReactionType;
|
|
46
44
|
guildId?: string | undefined;
|
|
47
45
|
channelId: string;
|
|
48
46
|
messageId: string;
|
|
@@ -58,11 +56,14 @@ export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMess
|
|
|
58
56
|
flags: import("discord-api-types/v10").GuildMemberFlags;
|
|
59
57
|
pending?: boolean | undefined;
|
|
60
58
|
communicationDisabledUntil?: string | null | undefined;
|
|
59
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
61
60
|
} | undefined;
|
|
62
61
|
userId: string;
|
|
62
|
+
burstColors: string[];
|
|
63
63
|
messageAuthorId?: string | undefined;
|
|
64
|
+
burst: boolean;
|
|
64
65
|
};
|
|
65
|
-
export declare const MESSAGE_REACTION_REMOVE: (_self:
|
|
66
|
+
export declare const MESSAGE_REACTION_REMOVE: (_self: UsingClient, data: GatewayMessageReactionRemoveDispatchData) => {
|
|
66
67
|
emoji: {
|
|
67
68
|
roles?: string[] | undefined;
|
|
68
69
|
user?: {
|
|
@@ -83,6 +84,7 @@ export declare const MESSAGE_REACTION_REMOVE: (_self: BaseClient, data: GatewayM
|
|
|
83
84
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
84
85
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
85
86
|
avatarDecoration?: string | null | undefined;
|
|
87
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
86
88
|
} | undefined;
|
|
87
89
|
requireColons?: boolean | undefined;
|
|
88
90
|
managed?: boolean | undefined;
|
|
@@ -91,17 +93,19 @@ export declare const MESSAGE_REACTION_REMOVE: (_self: BaseClient, data: GatewayM
|
|
|
91
93
|
name: string | null;
|
|
92
94
|
animated?: boolean | undefined;
|
|
93
95
|
};
|
|
96
|
+
type: import("discord-api-types/v10").ReactionType;
|
|
94
97
|
guildId?: string | undefined;
|
|
95
98
|
channelId: string;
|
|
96
99
|
messageId: string;
|
|
97
100
|
userId: string;
|
|
101
|
+
burst: boolean;
|
|
98
102
|
};
|
|
99
|
-
export declare const MESSAGE_REACTION_REMOVE_ALL: (_self:
|
|
103
|
+
export declare const MESSAGE_REACTION_REMOVE_ALL: (_self: UsingClient, data: GatewayMessageReactionRemoveAllDispatchData) => {
|
|
100
104
|
channelId: string;
|
|
101
105
|
messageId: string;
|
|
102
106
|
guildId?: string | undefined;
|
|
103
107
|
};
|
|
104
|
-
export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self:
|
|
108
|
+
export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: UsingClient, data: GatewayMessageReactionRemoveEmojiDispatchData) => {
|
|
105
109
|
emoji: {
|
|
106
110
|
roles?: string[] | undefined;
|
|
107
111
|
user?: {
|
|
@@ -122,6 +126,7 @@ export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: BaseClient, data: Ga
|
|
|
122
126
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
123
127
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
124
128
|
avatarDecoration?: string | null | undefined;
|
|
129
|
+
avatarDecorationData?: import("discord-api-types/v10").APIAvatarDecorationData | null | undefined;
|
|
125
130
|
} | undefined;
|
|
126
131
|
requireColons?: boolean | undefined;
|
|
127
132
|
managed?: boolean | undefined;
|
|
@@ -134,18 +139,18 @@ export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: BaseClient, data: Ga
|
|
|
134
139
|
messageId: string;
|
|
135
140
|
guildId?: string | undefined;
|
|
136
141
|
};
|
|
137
|
-
export declare const MESSAGE_UPDATE: (self:
|
|
138
|
-
|
|
139
|
-
|
|
142
|
+
export declare const MESSAGE_UPDATE: (self: UsingClient, data: GatewayMessageUpdateDispatchData) => Promise<[
|
|
143
|
+
message: MakeRequired<PartialClass<Message>, 'id' | 'channelId' | 'createdAt' | 'createdTimestamp' | 'rest' | 'cache' | 'api' | 'client' | 'mentions' | 'url' | 'user' | 'author'>,
|
|
144
|
+
old: undefined | Message
|
|
140
145
|
]>;
|
|
141
|
-
export declare const MESSAGE_POLL_VOTE_ADD: (_:
|
|
146
|
+
export declare const MESSAGE_POLL_VOTE_ADD: (_: UsingClient, data: GatewayMessagePollVoteDispatchData) => {
|
|
142
147
|
userId: string;
|
|
143
148
|
channelId: string;
|
|
144
149
|
messageId: string;
|
|
145
150
|
guildId?: string | undefined;
|
|
146
151
|
answerId: number;
|
|
147
152
|
};
|
|
148
|
-
export declare const MESSAGE_POLL_VOTE_REMOVE: (_:
|
|
153
|
+
export declare const MESSAGE_POLL_VOTE_REMOVE: (_: UsingClient, data: GatewayMessagePollVoteDispatchData) => {
|
|
149
154
|
userId: string;
|
|
150
155
|
channelId: string;
|
|
151
156
|
messageId: string;
|
|
@@ -35,7 +35,7 @@ const MESSAGE_REACTION_REMOVE_EMOJI = (_self, data) => {
|
|
|
35
35
|
};
|
|
36
36
|
exports.MESSAGE_REACTION_REMOVE_EMOJI = MESSAGE_REACTION_REMOVE_EMOJI;
|
|
37
37
|
const MESSAGE_UPDATE = async (self, data) => {
|
|
38
|
-
return [await self.cache.messages?.get(data.id)
|
|
38
|
+
return [new structures_1.Message(self, data), await self.cache.messages?.get(data.id)];
|
|
39
39
|
};
|
|
40
40
|
exports.MESSAGE_UPDATE = MESSAGE_UPDATE;
|
|
41
41
|
const MESSAGE_POLL_VOTE_ADD = (_, data) => {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { GatewayPresenceUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const PRESENCE_UPDATE: (
|
|
2
|
+
import type { UsingClient } from '../../commands';
|
|
3
|
+
export declare const PRESENCE_UPDATE: (self: UsingClient, data: GatewayPresenceUpdateDispatchData) => Promise<(import("../..").ReturnCache<(Omit<import("discord-api-types/v10").GatewayPresenceUpdate, "user"> & {
|
|
4
|
+
id: string;
|
|
5
|
+
} & {
|
|
6
|
+
guild_id: string;
|
|
7
|
+
}) | undefined> | {
|
|
4
8
|
user: {
|
|
5
9
|
id: string;
|
|
6
10
|
username?: string | undefined;
|
|
@@ -19,6 +23,10 @@ export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceU
|
|
|
19
23
|
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
20
24
|
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
21
25
|
avatarDecoration?: string | null | undefined;
|
|
26
|
+
avatarDecorationData?: {
|
|
27
|
+
asset: string;
|
|
28
|
+
skuId: string;
|
|
29
|
+
} | null | undefined;
|
|
22
30
|
};
|
|
23
31
|
guildId: string;
|
|
24
32
|
status?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
@@ -70,4 +78,4 @@ export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceU
|
|
|
70
78
|
mobile?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
71
79
|
web?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
72
80
|
} | undefined;
|
|
73
|
-
}
|
|
81
|
+
})[]>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PRESENCE_UPDATE = void 0;
|
|
4
4
|
const common_1 = require("../../common");
|
|
5
|
-
const PRESENCE_UPDATE = (
|
|
6
|
-
return (0, common_1.toCamelCase)(data);
|
|
5
|
+
const PRESENCE_UPDATE = async (self, data) => {
|
|
6
|
+
return [(0, common_1.toCamelCase)(data), await self.cache.presences?.get(data.user.id)];
|
|
7
7
|
};
|
|
8
8
|
exports.PRESENCE_UPDATE = PRESENCE_UPDATE;
|