seyfert 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api.js +5 -1
- package/lib/api/shared.d.ts +3 -1
- package/lib/common/shorters/guilds.d.ts +1 -1
- package/lib/common/shorters/guilds.js +2 -1
- package/lib/common/types/util.d.ts +8 -2
- package/lib/events/hooks/auto_moderation.d.ts +5 -1
- package/lib/events/hooks/guild.d.ts +691 -22
- package/lib/events/hooks/integration.d.ts +52 -47
- package/lib/events/hooks/interactions.d.ts +1 -1
- package/lib/events/hooks/invite.d.ts +67 -3
- package/lib/events/hooks/message.d.ts +70 -4
- package/lib/events/hooks/presence.d.ts +48 -2
- package/lib/events/hooks/thread.d.ts +155 -18
- package/lib/events/hooks/typing.d.ts +13 -1
- package/lib/events/hooks/voice.d.ts +13 -1
- package/lib/structures/AutoModerationRule.d.ts +1 -1
- package/lib/structures/AutoModerationRule.js +2 -1
- package/lib/structures/Interaction.d.ts +1 -1
- package/lib/websocket/discord/shard.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { GatewayIntegrationCreateDispatchData, GatewayIntegrationDeleteDispatchData, GatewayIntegrationUpdateDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
|
-
import { User } from '../../structures';
|
|
4
3
|
export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegrationCreateDispatchData) => {
|
|
5
4
|
id: string;
|
|
6
5
|
name: string;
|
|
@@ -11,7 +10,25 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
11
10
|
enableEmoticons?: boolean | undefined;
|
|
12
11
|
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
13
12
|
expireGracePeriod?: number | undefined;
|
|
14
|
-
user?:
|
|
13
|
+
user?: {
|
|
14
|
+
id?: string | undefined;
|
|
15
|
+
username?: string | undefined;
|
|
16
|
+
discriminator?: string | undefined;
|
|
17
|
+
globalName?: string | null | undefined;
|
|
18
|
+
avatar?: string | null | undefined;
|
|
19
|
+
bot?: boolean | undefined;
|
|
20
|
+
system?: boolean | undefined;
|
|
21
|
+
mfaEnabled?: boolean | undefined;
|
|
22
|
+
banner?: string | null | undefined;
|
|
23
|
+
accentColor?: number | null | undefined;
|
|
24
|
+
locale?: string | undefined;
|
|
25
|
+
verified?: boolean | undefined;
|
|
26
|
+
email?: string | null | undefined;
|
|
27
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
28
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
29
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
30
|
+
avatarDecoration?: string | null | undefined;
|
|
31
|
+
} | undefined;
|
|
15
32
|
account: {
|
|
16
33
|
id: string;
|
|
17
34
|
name: string;
|
|
@@ -19,28 +36,13 @@ export declare const INTEGRATION_CREATE: (self: BaseClient, data: GatewayIntegra
|
|
|
19
36
|
syncedAt?: string | undefined;
|
|
20
37
|
subscriberCount?: number | undefined;
|
|
21
38
|
revoked?: boolean | undefined;
|
|
22
|
-
application?:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
type: import("discord-api-types/v10").APIGuildIntegrationType;
|
|
30
|
-
enabled: boolean;
|
|
31
|
-
syncing?: boolean | undefined;
|
|
32
|
-
roleId?: string | undefined;
|
|
33
|
-
enableEmoticons?: boolean | undefined;
|
|
34
|
-
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
35
|
-
expireGracePeriod?: number | undefined;
|
|
36
|
-
account: {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
};
|
|
40
|
-
syncedAt?: string | undefined;
|
|
41
|
-
subscriberCount?: number | undefined;
|
|
42
|
-
revoked?: boolean | undefined;
|
|
43
|
-
application?: import("discord-api-types/v10").APIGuildIntegrationApplication | undefined;
|
|
39
|
+
application?: {
|
|
40
|
+
id?: string | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
icon?: string | null | undefined;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
bot?: import("discord-api-types/v10").APIUser | undefined;
|
|
45
|
+
} | undefined;
|
|
44
46
|
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
45
47
|
guildId: string;
|
|
46
48
|
};
|
|
@@ -54,28 +56,25 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
54
56
|
enableEmoticons?: boolean | undefined;
|
|
55
57
|
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
56
58
|
expireGracePeriod?: number | undefined;
|
|
57
|
-
user?:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
enableEmoticons?: boolean | undefined;
|
|
77
|
-
expireBehavior?: import("discord-api-types/v10").IntegrationExpireBehavior | undefined;
|
|
78
|
-
expireGracePeriod?: number | undefined;
|
|
59
|
+
user?: {
|
|
60
|
+
id?: string | undefined;
|
|
61
|
+
username?: string | undefined;
|
|
62
|
+
discriminator?: string | undefined;
|
|
63
|
+
globalName?: string | null | undefined;
|
|
64
|
+
avatar?: string | null | undefined;
|
|
65
|
+
bot?: boolean | undefined;
|
|
66
|
+
system?: boolean | undefined;
|
|
67
|
+
mfaEnabled?: boolean | undefined;
|
|
68
|
+
banner?: string | null | undefined;
|
|
69
|
+
accentColor?: number | null | undefined;
|
|
70
|
+
locale?: string | undefined;
|
|
71
|
+
verified?: boolean | undefined;
|
|
72
|
+
email?: string | null | undefined;
|
|
73
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
74
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
75
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
76
|
+
avatarDecoration?: string | null | undefined;
|
|
77
|
+
} | undefined;
|
|
79
78
|
account: {
|
|
80
79
|
id: string;
|
|
81
80
|
name: string;
|
|
@@ -83,7 +82,13 @@ export declare const INTEGRATION_UPDATE: (self: BaseClient, data: GatewayIntegra
|
|
|
83
82
|
syncedAt?: string | undefined;
|
|
84
83
|
subscriberCount?: number | undefined;
|
|
85
84
|
revoked?: boolean | undefined;
|
|
86
|
-
application?:
|
|
85
|
+
application?: {
|
|
86
|
+
id?: string | undefined;
|
|
87
|
+
name?: string | undefined;
|
|
88
|
+
icon?: string | null | undefined;
|
|
89
|
+
description?: string | undefined;
|
|
90
|
+
bot?: import("discord-api-types/v10").APIUser | undefined;
|
|
91
|
+
} | undefined;
|
|
87
92
|
scopes?: import("discord-api-types/v10").OAuth2Scopes[] | undefined;
|
|
88
93
|
guildId: string;
|
|
89
94
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GatewayInteractionCreateDispatchData } from 'discord-api-types/v10';
|
|
2
2
|
import type { BaseClient } from '../../client/base';
|
|
3
3
|
import { BaseInteraction } from '../../structures';
|
|
4
|
-
export declare const INTERACTION_CREATE: (self: BaseClient, data: GatewayInteractionCreateDispatchData) => import("../../structures").StringSelectMenuInteraction<string[]> | import("../../structures").AutocompleteInteraction<boolean> | BaseInteraction<boolean, import("discord-api-types/v10").APIPingInteraction>;
|
|
4
|
+
export declare const INTERACTION_CREATE: (self: BaseClient, 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>;
|
|
@@ -5,12 +5,76 @@ export declare const INVITE_CREATE: (_self: BaseClient, data: GatewayInviteCreat
|
|
|
5
5
|
code: string;
|
|
6
6
|
createdAt: number;
|
|
7
7
|
guildId?: string | undefined;
|
|
8
|
-
inviter?:
|
|
8
|
+
inviter?: {
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
username?: string | undefined;
|
|
11
|
+
discriminator?: string | undefined;
|
|
12
|
+
globalName?: string | null | undefined;
|
|
13
|
+
avatar?: string | null | undefined;
|
|
14
|
+
bot?: boolean | undefined;
|
|
15
|
+
system?: boolean | undefined;
|
|
16
|
+
mfaEnabled?: boolean | undefined;
|
|
17
|
+
banner?: string | null | undefined;
|
|
18
|
+
accentColor?: number | null | undefined;
|
|
19
|
+
locale?: string | undefined;
|
|
20
|
+
verified?: boolean | undefined;
|
|
21
|
+
email?: string | null | undefined;
|
|
22
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
23
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
24
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
25
|
+
avatarDecoration?: string | null | undefined;
|
|
26
|
+
} | undefined;
|
|
9
27
|
maxAge: number;
|
|
10
28
|
maxUses: number;
|
|
11
29
|
targetType?: import("discord-api-types/v10").InviteTargetType | undefined;
|
|
12
|
-
targetUser?:
|
|
13
|
-
|
|
30
|
+
targetUser?: {
|
|
31
|
+
id?: string | undefined;
|
|
32
|
+
username?: string | undefined;
|
|
33
|
+
discriminator?: string | undefined;
|
|
34
|
+
globalName?: string | null | undefined;
|
|
35
|
+
avatar?: string | null | undefined;
|
|
36
|
+
bot?: boolean | undefined;
|
|
37
|
+
system?: boolean | undefined;
|
|
38
|
+
mfaEnabled?: boolean | undefined;
|
|
39
|
+
banner?: string | null | undefined;
|
|
40
|
+
accentColor?: number | null | undefined;
|
|
41
|
+
locale?: string | undefined;
|
|
42
|
+
verified?: boolean | undefined;
|
|
43
|
+
email?: string | null | undefined;
|
|
44
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
45
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
46
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
47
|
+
avatarDecoration?: string | null | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
targetApplication?: {
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
name?: string | undefined;
|
|
52
|
+
icon?: string | null | undefined;
|
|
53
|
+
description?: string | undefined;
|
|
54
|
+
rpcOrigins?: string[] | undefined;
|
|
55
|
+
botPublic?: boolean | undefined;
|
|
56
|
+
botRequireCodeGrant?: boolean | undefined;
|
|
57
|
+
bot?: import("discord-api-types/v10").APIUser | undefined;
|
|
58
|
+
termsOfServiceUrl?: string | undefined;
|
|
59
|
+
privacyPolicyUrl?: string | undefined;
|
|
60
|
+
owner?: import("discord-api-types/v10").APIUser | undefined;
|
|
61
|
+
summary?: "" | undefined;
|
|
62
|
+
verifyKey?: string | undefined;
|
|
63
|
+
team?: import("discord-api-types/v10").APITeam | null | undefined;
|
|
64
|
+
guildId?: string | undefined;
|
|
65
|
+
guild?: import("discord-api-types/v10").APIPartialGuild | undefined;
|
|
66
|
+
primarySkuId?: string | undefined;
|
|
67
|
+
slug?: string | undefined;
|
|
68
|
+
coverImage?: string | undefined;
|
|
69
|
+
flags?: import("discord-api-types/v10").ApplicationFlags | undefined;
|
|
70
|
+
approximateGuildCount?: number | undefined;
|
|
71
|
+
redirectUris?: string[] | undefined;
|
|
72
|
+
interactionsEndpointUrl?: string | undefined;
|
|
73
|
+
roleConnectionsVerificationUrl?: string | undefined;
|
|
74
|
+
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
75
|
+
installParams?: import("discord-api-types/v10").APIApplicationInstallParams | undefined;
|
|
76
|
+
customInstallUrl?: string | undefined;
|
|
77
|
+
} | undefined;
|
|
14
78
|
temporary: boolean;
|
|
15
79
|
uses: 0;
|
|
16
80
|
};
|
|
@@ -17,7 +17,25 @@ export declare const MESSAGE_DELETE_BULK: (self: BaseClient, data: GatewayMessag
|
|
|
17
17
|
export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMessageReactionAddDispatchData) => {
|
|
18
18
|
emoji: {
|
|
19
19
|
roles?: string[] | undefined;
|
|
20
|
-
user?:
|
|
20
|
+
user?: {
|
|
21
|
+
id?: string | undefined;
|
|
22
|
+
username?: string | undefined;
|
|
23
|
+
discriminator?: string | undefined;
|
|
24
|
+
globalName?: string | null | undefined;
|
|
25
|
+
avatar?: string | null | undefined;
|
|
26
|
+
bot?: boolean | undefined;
|
|
27
|
+
system?: boolean | undefined;
|
|
28
|
+
mfaEnabled?: boolean | undefined;
|
|
29
|
+
banner?: string | null | undefined;
|
|
30
|
+
accentColor?: number | null | undefined;
|
|
31
|
+
locale?: string | undefined;
|
|
32
|
+
verified?: boolean | undefined;
|
|
33
|
+
email?: string | null | undefined;
|
|
34
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
35
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
36
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
37
|
+
avatarDecoration?: string | null | undefined;
|
|
38
|
+
} | undefined;
|
|
21
39
|
requireColons?: boolean | undefined;
|
|
22
40
|
managed?: boolean | undefined;
|
|
23
41
|
available?: boolean | undefined;
|
|
@@ -28,14 +46,44 @@ export declare const MESSAGE_REACTION_ADD: (_self: BaseClient, data: GatewayMess
|
|
|
28
46
|
guildId?: string | undefined;
|
|
29
47
|
channelId: string;
|
|
30
48
|
messageId: string;
|
|
31
|
-
member?:
|
|
49
|
+
member?: {
|
|
50
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
51
|
+
nick?: string | null | undefined;
|
|
52
|
+
avatar?: string | null | undefined;
|
|
53
|
+
roles?: string[] | undefined;
|
|
54
|
+
joinedAt?: string | undefined;
|
|
55
|
+
premiumSince?: string | null | undefined;
|
|
56
|
+
deaf?: boolean | undefined;
|
|
57
|
+
mute?: boolean | undefined;
|
|
58
|
+
flags?: import("discord-api-types/v10").GuildMemberFlags | undefined;
|
|
59
|
+
pending?: boolean | undefined;
|
|
60
|
+
communicationDisabledUntil?: string | null | undefined;
|
|
61
|
+
} | undefined;
|
|
32
62
|
userId: string;
|
|
33
63
|
messageAuthorId?: string | undefined;
|
|
34
64
|
};
|
|
35
65
|
export declare const MESSAGE_REACTION_REMOVE: (_self: BaseClient, data: GatewayMessageReactionRemoveDispatchData) => {
|
|
36
66
|
emoji: {
|
|
37
67
|
roles?: string[] | undefined;
|
|
38
|
-
user?:
|
|
68
|
+
user?: {
|
|
69
|
+
id?: string | undefined;
|
|
70
|
+
username?: string | undefined;
|
|
71
|
+
discriminator?: string | undefined;
|
|
72
|
+
globalName?: string | null | undefined;
|
|
73
|
+
avatar?: string | null | undefined;
|
|
74
|
+
bot?: boolean | undefined;
|
|
75
|
+
system?: boolean | undefined;
|
|
76
|
+
mfaEnabled?: boolean | undefined;
|
|
77
|
+
banner?: string | null | undefined;
|
|
78
|
+
accentColor?: number | null | undefined;
|
|
79
|
+
locale?: string | undefined;
|
|
80
|
+
verified?: boolean | undefined;
|
|
81
|
+
email?: string | null | undefined;
|
|
82
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
83
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
84
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
85
|
+
avatarDecoration?: string | null | undefined;
|
|
86
|
+
} | undefined;
|
|
39
87
|
requireColons?: boolean | undefined;
|
|
40
88
|
managed?: boolean | undefined;
|
|
41
89
|
available?: boolean | undefined;
|
|
@@ -56,7 +104,25 @@ export declare const MESSAGE_REACTION_REMOVE_ALL: (_self: BaseClient, data: Gate
|
|
|
56
104
|
export declare const MESSAGE_REACTION_REMOVE_EMOJI: (_self: BaseClient, data: GatewayMessageReactionRemoveEmojiDispatchData) => {
|
|
57
105
|
emoji: {
|
|
58
106
|
roles?: string[] | undefined;
|
|
59
|
-
user?:
|
|
107
|
+
user?: {
|
|
108
|
+
id?: string | undefined;
|
|
109
|
+
username?: string | undefined;
|
|
110
|
+
discriminator?: string | undefined;
|
|
111
|
+
globalName?: string | null | undefined;
|
|
112
|
+
avatar?: string | null | undefined;
|
|
113
|
+
bot?: boolean | undefined;
|
|
114
|
+
system?: boolean | undefined;
|
|
115
|
+
mfaEnabled?: boolean | undefined;
|
|
116
|
+
banner?: string | null | undefined;
|
|
117
|
+
accentColor?: number | null | undefined;
|
|
118
|
+
locale?: string | undefined;
|
|
119
|
+
verified?: boolean | undefined;
|
|
120
|
+
email?: string | null | undefined;
|
|
121
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
122
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
123
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
124
|
+
avatarDecoration?: string | null | undefined;
|
|
125
|
+
} | undefined;
|
|
60
126
|
requireColons?: boolean | undefined;
|
|
61
127
|
managed?: boolean | undefined;
|
|
62
128
|
available?: boolean | undefined;
|
|
@@ -22,6 +22,52 @@ export declare const PRESENCE_UPDATE: (_self: BaseClient, data: GatewayPresenceU
|
|
|
22
22
|
};
|
|
23
23
|
guildId: string;
|
|
24
24
|
status?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
25
|
-
activities?:
|
|
26
|
-
|
|
25
|
+
activities?: {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
type: import("discord-api-types/v10").ActivityType;
|
|
29
|
+
url?: string | null | undefined;
|
|
30
|
+
createdAt: number;
|
|
31
|
+
timestamps?: {
|
|
32
|
+
start?: number | undefined;
|
|
33
|
+
end?: number | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
syncId?: string | undefined;
|
|
36
|
+
platform?: string | undefined;
|
|
37
|
+
applicationId?: string | undefined;
|
|
38
|
+
details?: string | null | undefined;
|
|
39
|
+
state?: string | null | undefined;
|
|
40
|
+
emoji?: {
|
|
41
|
+
id?: string | null | undefined;
|
|
42
|
+
animated?: boolean | undefined;
|
|
43
|
+
name?: string | null | undefined;
|
|
44
|
+
} | undefined;
|
|
45
|
+
sessionId?: string | undefined;
|
|
46
|
+
party?: {
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
size?: [current_size: number, max_size: number] | undefined;
|
|
49
|
+
} | undefined;
|
|
50
|
+
assets?: {
|
|
51
|
+
largeImage?: string | undefined;
|
|
52
|
+
largeText?: string | undefined;
|
|
53
|
+
smallImage?: string | undefined;
|
|
54
|
+
smallText?: string | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
secrets?: {
|
|
57
|
+
match?: string | undefined;
|
|
58
|
+
join?: string | undefined;
|
|
59
|
+
spectate?: string | undefined;
|
|
60
|
+
} | undefined;
|
|
61
|
+
instance?: boolean | undefined;
|
|
62
|
+
flags?: import("discord-api-types/v10").ActivityFlags | undefined;
|
|
63
|
+
buttons?: string[] | {
|
|
64
|
+
label: string;
|
|
65
|
+
url: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
}[] | undefined;
|
|
68
|
+
clientStatus?: {
|
|
69
|
+
desktop?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
70
|
+
mobile?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
71
|
+
web?: import("discord-api-types/v10").PresenceUpdateReceiveStatus | undefined;
|
|
72
|
+
} | undefined;
|
|
27
73
|
};
|
|
@@ -7,13 +7,31 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
7
7
|
guildId: string;
|
|
8
8
|
channelIds?: string[] | undefined;
|
|
9
9
|
threads: ({
|
|
10
|
-
name:
|
|
10
|
+
name: undefined;
|
|
11
11
|
type: import("discord-api-types/v10").ChannelType.DM;
|
|
12
12
|
id: string;
|
|
13
13
|
flags?: import("discord-api-types/v10").ChannelFlags | undefined;
|
|
14
14
|
lastMessageId?: string | null | undefined;
|
|
15
15
|
lastPinTimestamp?: string | null | undefined;
|
|
16
|
-
recipients?:
|
|
16
|
+
recipients?: {
|
|
17
|
+
id: string;
|
|
18
|
+
username: string;
|
|
19
|
+
discriminator: string;
|
|
20
|
+
globalName: string | null;
|
|
21
|
+
avatar: string | null;
|
|
22
|
+
bot?: boolean | undefined;
|
|
23
|
+
system?: boolean | undefined;
|
|
24
|
+
mfaEnabled?: boolean | undefined;
|
|
25
|
+
banner?: string | null | undefined;
|
|
26
|
+
accentColor?: number | null | undefined;
|
|
27
|
+
locale?: string | undefined;
|
|
28
|
+
verified?: boolean | undefined;
|
|
29
|
+
email?: string | null | undefined;
|
|
30
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
31
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
32
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
33
|
+
avatarDecoration?: string | null | undefined;
|
|
34
|
+
}[] | undefined;
|
|
17
35
|
} | {
|
|
18
36
|
defaultForumLayout: import("discord-api-types/v10").ForumLayoutType;
|
|
19
37
|
topic?: string | null | undefined;
|
|
@@ -29,11 +47,19 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
29
47
|
emojiName: string | null;
|
|
30
48
|
}[];
|
|
31
49
|
defaultThreadRateLimitPerUser?: number | undefined;
|
|
32
|
-
defaultReactionEmoji:
|
|
50
|
+
defaultReactionEmoji: {
|
|
51
|
+
emojiId?: string | null | undefined;
|
|
52
|
+
emojiName?: string | null | undefined;
|
|
53
|
+
} | null;
|
|
33
54
|
defaultSortOrder: import("discord-api-types/v10").SortOrderType | null;
|
|
34
55
|
name: string;
|
|
35
56
|
guildId?: string | undefined;
|
|
36
|
-
permissionOverwrites?:
|
|
57
|
+
permissionOverwrites?: {
|
|
58
|
+
id: string;
|
|
59
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
60
|
+
allow: string;
|
|
61
|
+
deny: string;
|
|
62
|
+
}[] | undefined;
|
|
37
63
|
position: number;
|
|
38
64
|
parentId?: string | null | undefined;
|
|
39
65
|
nsfw?: boolean | undefined;
|
|
@@ -52,7 +78,12 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
52
78
|
lastPinTimestamp?: string | null | undefined;
|
|
53
79
|
name: string;
|
|
54
80
|
guildId?: string | undefined;
|
|
55
|
-
permissionOverwrites?:
|
|
81
|
+
permissionOverwrites?: {
|
|
82
|
+
id: string;
|
|
83
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
84
|
+
allow: string;
|
|
85
|
+
deny: string;
|
|
86
|
+
}[] | undefined;
|
|
56
87
|
position: number;
|
|
57
88
|
parentId?: string | null | undefined;
|
|
58
89
|
nsfw?: boolean | undefined;
|
|
@@ -67,11 +98,34 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
67
98
|
id: string;
|
|
68
99
|
flags?: import("discord-api-types/v10").ChannelFlags | undefined;
|
|
69
100
|
lastPinTimestamp?: string | null | undefined;
|
|
70
|
-
recipients?:
|
|
101
|
+
recipients?: {
|
|
102
|
+
id: string;
|
|
103
|
+
username: string;
|
|
104
|
+
discriminator: string;
|
|
105
|
+
globalName: string | null;
|
|
106
|
+
avatar: string | null;
|
|
107
|
+
bot?: boolean | undefined;
|
|
108
|
+
system?: boolean | undefined;
|
|
109
|
+
mfaEnabled?: boolean | undefined;
|
|
110
|
+
banner?: string | null | undefined;
|
|
111
|
+
accentColor?: number | null | undefined;
|
|
112
|
+
locale?: string | undefined;
|
|
113
|
+
verified?: boolean | undefined;
|
|
114
|
+
email?: string | null | undefined;
|
|
115
|
+
flags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
116
|
+
premiumType?: import("discord-api-types/v10").UserPremiumType | undefined;
|
|
117
|
+
publicFlags?: import("discord-api-types/v10").UserFlags | undefined;
|
|
118
|
+
avatarDecoration?: string | null | undefined;
|
|
119
|
+
}[] | undefined;
|
|
71
120
|
} | {
|
|
72
121
|
name: string;
|
|
73
122
|
guildId?: string | undefined;
|
|
74
|
-
permissionOverwrites?:
|
|
123
|
+
permissionOverwrites?: {
|
|
124
|
+
id: string;
|
|
125
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
126
|
+
allow: string;
|
|
127
|
+
deny: string;
|
|
128
|
+
}[] | undefined;
|
|
75
129
|
position: number;
|
|
76
130
|
parentId?: string | null | undefined;
|
|
77
131
|
nsfw?: boolean | undefined;
|
|
@@ -92,11 +146,19 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
92
146
|
emojiName: string | null;
|
|
93
147
|
}[];
|
|
94
148
|
defaultThreadRateLimitPerUser?: number | undefined;
|
|
95
|
-
defaultReactionEmoji:
|
|
149
|
+
defaultReactionEmoji: {
|
|
150
|
+
emojiId?: string | null | undefined;
|
|
151
|
+
emojiName?: string | null | undefined;
|
|
152
|
+
} | null;
|
|
96
153
|
defaultSortOrder: import("discord-api-types/v10").SortOrderType | null;
|
|
97
154
|
name: string;
|
|
98
155
|
guildId?: string | undefined;
|
|
99
|
-
permissionOverwrites?:
|
|
156
|
+
permissionOverwrites?: {
|
|
157
|
+
id: string;
|
|
158
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
159
|
+
allow: string;
|
|
160
|
+
deny: string;
|
|
161
|
+
}[] | undefined;
|
|
100
162
|
position: number;
|
|
101
163
|
parentId?: string | null | undefined;
|
|
102
164
|
nsfw?: boolean | undefined;
|
|
@@ -110,7 +172,12 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
110
172
|
videoQualityMode?: import("discord-api-types/v10").VideoQualityMode | undefined;
|
|
111
173
|
name: string;
|
|
112
174
|
guildId?: string | undefined;
|
|
113
|
-
permissionOverwrites?:
|
|
175
|
+
permissionOverwrites?: {
|
|
176
|
+
id: string;
|
|
177
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
178
|
+
allow: string;
|
|
179
|
+
deny: string;
|
|
180
|
+
}[] | undefined;
|
|
114
181
|
position: number;
|
|
115
182
|
parentId?: string | null | undefined;
|
|
116
183
|
nsfw?: boolean | undefined;
|
|
@@ -126,7 +193,12 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
126
193
|
videoQualityMode?: import("discord-api-types/v10").VideoQualityMode | undefined;
|
|
127
194
|
name: string;
|
|
128
195
|
guildId?: string | undefined;
|
|
129
|
-
permissionOverwrites?:
|
|
196
|
+
permissionOverwrites?: {
|
|
197
|
+
id: string;
|
|
198
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
199
|
+
allow: string;
|
|
200
|
+
deny: string;
|
|
201
|
+
}[] | undefined;
|
|
130
202
|
position: number;
|
|
131
203
|
parentId?: string | null | undefined;
|
|
132
204
|
nsfw?: boolean | undefined;
|
|
@@ -147,13 +219,31 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
147
219
|
lastPinTimestamp?: string | null | undefined;
|
|
148
220
|
name: string;
|
|
149
221
|
guildId?: string | undefined;
|
|
150
|
-
permissionOverwrites?:
|
|
222
|
+
permissionOverwrites?: {
|
|
223
|
+
id: string;
|
|
224
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
225
|
+
allow: string;
|
|
226
|
+
deny: string;
|
|
227
|
+
}[] | undefined;
|
|
151
228
|
position: number;
|
|
152
229
|
parentId?: string | null | undefined;
|
|
153
230
|
nsfw?: boolean | undefined;
|
|
154
231
|
} | {
|
|
155
|
-
member?:
|
|
156
|
-
|
|
232
|
+
member?: {
|
|
233
|
+
id?: string | undefined;
|
|
234
|
+
userId?: string | undefined;
|
|
235
|
+
joinTimestamp?: string | undefined;
|
|
236
|
+
flags?: import("discord-api-types/v10").ThreadMemberFlags | undefined;
|
|
237
|
+
member?: import("discord-api-types/v10").APIGuildMember | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
threadMetadata?: {
|
|
240
|
+
archived?: boolean | undefined;
|
|
241
|
+
autoArchiveDuration?: import("discord-api-types/v10").ThreadAutoArchiveDuration | undefined;
|
|
242
|
+
archiveTimestamp?: string | undefined;
|
|
243
|
+
locked?: boolean | undefined;
|
|
244
|
+
invitable?: boolean | undefined;
|
|
245
|
+
createTimestamp?: string | undefined;
|
|
246
|
+
} | undefined;
|
|
157
247
|
messageCount?: number | undefined;
|
|
158
248
|
memberCount?: number | undefined;
|
|
159
249
|
ownerId?: string | undefined;
|
|
@@ -167,7 +257,12 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
167
257
|
lastPinTimestamp?: string | null | undefined;
|
|
168
258
|
name: string;
|
|
169
259
|
guildId?: string | undefined;
|
|
170
|
-
permissionOverwrites?:
|
|
260
|
+
permissionOverwrites?: {
|
|
261
|
+
id: string;
|
|
262
|
+
type: import("discord-api-types/v10").OverwriteType;
|
|
263
|
+
allow: string;
|
|
264
|
+
deny: string;
|
|
265
|
+
}[] | undefined;
|
|
171
266
|
position: number;
|
|
172
267
|
parentId?: string | null | undefined;
|
|
173
268
|
nsfw?: boolean | undefined;
|
|
@@ -177,7 +272,19 @@ export declare const THREAD_LIST_SYNC: (_self: BaseClient, data: GatewayThreadLi
|
|
|
177
272
|
userId?: string | undefined;
|
|
178
273
|
joinTimestamp: string;
|
|
179
274
|
flags: import("discord-api-types/v10").ThreadMemberFlags;
|
|
180
|
-
member?:
|
|
275
|
+
member?: {
|
|
276
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
277
|
+
nick?: string | null | undefined;
|
|
278
|
+
avatar?: string | null | undefined;
|
|
279
|
+
roles?: string[] | undefined;
|
|
280
|
+
joinedAt?: string | undefined;
|
|
281
|
+
premiumSince?: string | null | undefined;
|
|
282
|
+
deaf?: boolean | undefined;
|
|
283
|
+
mute?: boolean | undefined;
|
|
284
|
+
flags?: import("discord-api-types/v10").GuildMemberFlags | undefined;
|
|
285
|
+
pending?: boolean | undefined;
|
|
286
|
+
communicationDisabledUntil?: string | null | undefined;
|
|
287
|
+
} | undefined;
|
|
181
288
|
}[];
|
|
182
289
|
};
|
|
183
290
|
export declare const THREAD_MEMBER_UPDATE: (_self: BaseClient, data: GatewayThreadMemberUpdateDispatchData) => {
|
|
@@ -185,14 +292,44 @@ export declare const THREAD_MEMBER_UPDATE: (_self: BaseClient, data: GatewayThre
|
|
|
185
292
|
userId?: string | undefined;
|
|
186
293
|
joinTimestamp: string;
|
|
187
294
|
flags: import("discord-api-types/v10").ThreadMemberFlags;
|
|
188
|
-
member?:
|
|
295
|
+
member?: {
|
|
296
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
297
|
+
nick?: string | null | undefined;
|
|
298
|
+
avatar?: string | null | undefined;
|
|
299
|
+
roles?: string[] | undefined;
|
|
300
|
+
joinedAt?: string | undefined;
|
|
301
|
+
premiumSince?: string | null | undefined;
|
|
302
|
+
deaf?: boolean | undefined;
|
|
303
|
+
mute?: boolean | undefined;
|
|
304
|
+
flags?: import("discord-api-types/v10").GuildMemberFlags | undefined;
|
|
305
|
+
pending?: boolean | undefined;
|
|
306
|
+
communicationDisabledUntil?: string | null | undefined;
|
|
307
|
+
} | undefined;
|
|
189
308
|
guildId: string;
|
|
190
309
|
};
|
|
191
310
|
export declare const THREAD_MEMBERS_UPDATE: (_self: BaseClient, data: GatewayThreadMembersUpdateDispatchData) => {
|
|
192
311
|
id: string;
|
|
193
312
|
guildId: string;
|
|
194
313
|
memberCount: number;
|
|
195
|
-
addedMembers?:
|
|
314
|
+
addedMembers?: {
|
|
315
|
+
id?: string | undefined;
|
|
316
|
+
userId?: string | undefined;
|
|
317
|
+
joinTimestamp: string;
|
|
318
|
+
flags: import("discord-api-types/v10").ThreadMemberFlags;
|
|
319
|
+
member?: {
|
|
320
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
321
|
+
nick?: string | null | undefined;
|
|
322
|
+
avatar?: string | null | undefined;
|
|
323
|
+
roles?: string[] | undefined;
|
|
324
|
+
joinedAt?: string | undefined;
|
|
325
|
+
premiumSince?: string | null | undefined;
|
|
326
|
+
deaf?: boolean | undefined;
|
|
327
|
+
mute?: boolean | undefined;
|
|
328
|
+
flags?: import("discord-api-types/v10").GuildMemberFlags | undefined;
|
|
329
|
+
pending?: boolean | undefined;
|
|
330
|
+
communicationDisabledUntil?: string | null | undefined;
|
|
331
|
+
} | undefined;
|
|
332
|
+
}[] | undefined;
|
|
196
333
|
removedMemberIds?: string[] | undefined;
|
|
197
334
|
};
|
|
198
335
|
export declare const THREAD_UPDATE: (self: BaseClient, data: GatewayThreadUpdateDispatchData) => ThreadChannel;
|
|
@@ -6,7 +6,19 @@ export declare const TYPING_START: (self: BaseClient, data: GatewayTypingStartDi
|
|
|
6
6
|
guildId?: string | undefined;
|
|
7
7
|
userId: string;
|
|
8
8
|
timestamp: number;
|
|
9
|
-
member?:
|
|
9
|
+
member?: {
|
|
10
|
+
user?: import("discord-api-types/v10").APIUser | undefined;
|
|
11
|
+
nick?: string | null | undefined;
|
|
12
|
+
avatar?: string | null | undefined;
|
|
13
|
+
roles?: string[] | undefined;
|
|
14
|
+
joinedAt?: string | undefined;
|
|
15
|
+
premiumSince?: string | null | undefined;
|
|
16
|
+
deaf?: boolean | undefined;
|
|
17
|
+
mute?: boolean | undefined;
|
|
18
|
+
flags?: import("discord-api-types/v10").GuildMemberFlags | undefined;
|
|
19
|
+
pending?: boolean | undefined;
|
|
20
|
+
communicationDisabledUntil?: string | null | undefined;
|
|
21
|
+
} | undefined;
|
|
10
22
|
} | {
|
|
11
23
|
member: GuildMember;
|
|
12
24
|
channelId: string;
|