seyfert 4.5.0 → 5.0.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/lib/api/Routes/cdn.d.ts +2 -2
- package/lib/api/Routes/guilds.d.ts +2 -2
- package/lib/api/Routes/invites.d.ts +2 -2
- package/lib/api/api.d.ts +20 -8
- package/lib/api/api.js +198 -44
- package/lib/api/shared.d.ts +30 -1
- package/lib/api/utils/constants.d.ts +1 -1
- package/lib/api/utils/constants.js +1 -1
- package/lib/api/utils/utils.d.ts +2 -1
- package/lib/api/utils/utils.js +1 -1
- package/lib/builders/Attachment.d.ts +1 -1
- package/lib/builders/Attachment.js +30 -8
- package/lib/builders/MediaGallery.d.ts +2 -2
- package/lib/builders/MediaGallery.js +10 -0
- package/lib/builders/Modal.d.ts +18 -8
- package/lib/builders/Modal.js +36 -7
- package/lib/builders/Poll.js +18 -0
- package/lib/builders/RadioGroup.d.ts +4 -3
- package/lib/builders/RadioGroup.js +24 -3
- package/lib/builders/SelectMenu.d.ts +8 -6
- package/lib/builders/SelectMenu.js +24 -3
- package/lib/builders/types.d.ts +3 -2
- package/lib/cache/adapters/default.d.ts +1 -1
- package/lib/cache/adapters/default.js +23 -26
- package/lib/cache/adapters/limited.d.ts +1 -0
- package/lib/cache/adapters/limited.js +47 -33
- package/lib/cache/index.d.ts +19 -25
- package/lib/cache/index.js +58 -6
- package/lib/cache/resources/bans.d.ts +1 -1
- package/lib/cache/resources/bans.js +4 -4
- package/lib/cache/resources/channels.d.ts +1 -1
- package/lib/cache/resources/channels.js +4 -4
- package/lib/cache/resources/default/base.d.ts +1 -1
- package/lib/cache/resources/default/base.js +8 -8
- package/lib/cache/resources/default/guild-based.d.ts +5 -5
- package/lib/cache/resources/default/guild-based.js +29 -16
- package/lib/cache/resources/default/guild-related.d.ts +5 -5
- package/lib/cache/resources/default/guild-related.js +14 -14
- package/lib/cache/resources/emojis.d.ts +1 -1
- package/lib/cache/resources/emojis.js +4 -4
- package/lib/cache/resources/guilds.js +28 -15
- package/lib/cache/resources/members.d.ts +1 -1
- package/lib/cache/resources/members.js +6 -6
- package/lib/cache/resources/messages.d.ts +7 -2
- package/lib/cache/resources/messages.js +43 -20
- package/lib/cache/resources/overwrites.d.ts +1 -1
- package/lib/cache/resources/overwrites.js +5 -8
- package/lib/cache/resources/roles.d.ts +1 -1
- package/lib/cache/resources/roles.js +4 -4
- package/lib/cache/resources/stickers.d.ts +1 -1
- package/lib/cache/resources/stickers.js +4 -4
- package/lib/cache/resources/users.js +4 -4
- package/lib/cache/resources/voice-states.d.ts +1 -1
- package/lib/cache/resources/voice-states.js +4 -4
- package/lib/client/base.d.ts +83 -24
- package/lib/client/base.js +594 -39
- package/lib/client/client.d.ts +28 -3
- package/lib/client/client.js +33 -9
- package/lib/client/collectors.d.ts +9 -8
- package/lib/client/collectors.js +19 -52
- package/lib/client/httpclient.d.ts +3 -0
- package/lib/client/index.d.ts +3 -1
- package/lib/client/index.js +4 -0
- package/lib/client/intents.d.ts +3 -0
- package/lib/client/intents.js +9 -0
- package/lib/client/plugins/api.d.ts +4 -0
- package/lib/client/plugins/api.js +550 -0
- package/lib/client/plugins/errors.d.ts +25 -0
- package/lib/client/plugins/errors.js +79 -0
- package/lib/client/plugins/order.d.ts +10 -0
- package/lib/client/plugins/order.js +32 -0
- package/lib/client/plugins/registry.d.ts +273 -0
- package/lib/client/plugins/registry.js +868 -0
- package/lib/client/plugins/shared.d.ts +23 -0
- package/lib/client/plugins/shared.js +193 -0
- package/lib/client/plugins/types.d.ts +398 -0
- package/lib/client/plugins/types.js +8 -0
- package/lib/client/plugins.d.ts +78 -0
- package/lib/client/plugins.js +558 -0
- package/lib/client/transformers.d.ts +33 -33
- package/lib/client/workerclient.d.ts +10 -1
- package/lib/client/workerclient.js +27 -17
- package/lib/collection.d.ts +10 -8
- package/lib/collection.js +19 -25
- package/lib/commands/applications/chat.d.ts +20 -18
- package/lib/commands/applications/chat.js +39 -14
- package/lib/commands/applications/chatcontext.d.ts +23 -15
- package/lib/commands/applications/chatcontext.js +23 -2
- package/lib/commands/applications/entryPoint.d.ts +4 -3
- package/lib/commands/applications/entryPoint.js +1 -1
- package/lib/commands/applications/entrycontext.d.ts +7 -9
- package/lib/commands/applications/entrycontext.js +3 -1
- package/lib/commands/applications/menu.d.ts +4 -3
- package/lib/commands/applications/menucontext.d.ts +7 -9
- package/lib/commands/applications/menucontext.js +3 -1
- package/lib/commands/applications/options.d.ts +23 -23
- package/lib/commands/applications/shared.d.ts +39 -17
- package/lib/commands/decorators.d.ts +50 -38
- package/lib/commands/decorators.js +15 -5
- package/lib/commands/handle.d.ts +19 -8
- package/lib/commands/handle.js +224 -143
- package/lib/commands/handler.d.ts +21 -8
- package/lib/commands/handler.js +157 -69
- package/lib/commands/index.d.ts +1 -0
- package/lib/commands/optionresolver.d.ts +2 -2
- package/lib/common/it/colors.js +12 -2
- package/lib/common/it/error.d.ts +9 -0
- package/lib/common/it/error.js +8 -0
- package/lib/common/it/fake-promise.d.ts +4 -0
- package/lib/common/it/fake-promise.js +10 -0
- package/lib/common/it/formatter.d.ts +14 -11
- package/lib/common/it/formatter.js +4 -3
- package/lib/common/it/logger.d.ts +7 -1
- package/lib/common/it/logger.js +24 -6
- package/lib/common/it/utils.d.ts +6 -8
- package/lib/common/it/utils.js +44 -42
- package/lib/common/shorters/application.d.ts +3 -3
- package/lib/common/shorters/application.js +3 -2
- package/lib/common/shorters/bans.d.ts +8 -4
- package/lib/common/shorters/bans.js +13 -5
- package/lib/common/shorters/channels.d.ts +4 -4
- package/lib/common/shorters/channels.js +4 -4
- package/lib/common/shorters/emojis.js +1 -0
- package/lib/common/shorters/guilds.d.ts +8 -8
- package/lib/common/shorters/guilds.js +14 -31
- package/lib/common/shorters/interaction.d.ts +1 -1
- package/lib/common/shorters/invites.d.ts +201 -201
- package/lib/common/shorters/members.d.ts +7 -7
- package/lib/common/shorters/members.js +13 -14
- package/lib/common/shorters/messages.d.ts +2 -2
- package/lib/common/shorters/soundboard.d.ts +5 -5
- package/lib/common/shorters/users.d.ts +1 -1
- package/lib/common/shorters/webhook.d.ts +3 -2
- package/lib/common/shorters/webhook.js +0 -7
- package/lib/common/types/options.d.ts +4 -0
- package/lib/common/types/util.d.ts +8 -0
- package/lib/common/types/write.d.ts +2 -1
- package/lib/components/BaseSelectMenuComponent.d.ts +1 -1
- package/lib/components/BaseSelectMenuComponent.js +1 -1
- package/lib/components/ButtonComponent.d.ts +3 -3
- package/lib/components/ChannelSelectMenuComponent.d.ts +2 -2
- package/lib/components/File.d.ts +1 -1
- package/lib/components/MediaGallery.d.ts +1 -1
- package/lib/components/MentionableSelectMenuComponent.d.ts +1 -1
- package/lib/components/RoleSelectMenuComponent.d.ts +1 -1
- package/lib/components/Separator.d.ts +1 -1
- package/lib/components/StringSelectMenuComponent.d.ts +1 -1
- package/lib/components/TextInputComponent.d.ts +1 -1
- package/lib/components/Thumbnail.d.ts +1 -1
- package/lib/components/UserSelectMenuComponent.d.ts +1 -1
- package/lib/components/componentcommand.d.ts +8 -7
- package/lib/components/componentcontext.d.ts +24 -36
- package/lib/components/componentcontext.js +7 -17
- package/lib/components/handler.d.ts +17 -7
- package/lib/components/handler.js +108 -49
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -0
- package/lib/components/interactioncontext.d.ts +45 -0
- package/lib/components/interactioncontext.js +93 -0
- package/lib/components/modalcommand.d.ts +5 -4
- package/lib/components/modalcontext.d.ts +39 -20
- package/lib/components/modalcontext.js +59 -6
- package/lib/events/event.d.ts +9 -3
- package/lib/events/handler.d.ts +51 -6
- package/lib/events/handler.js +165 -36
- package/lib/events/hooks/application_command.d.ts +1 -1
- package/lib/events/hooks/auto_moderation.d.ts +2 -2
- package/lib/events/hooks/guild.d.ts +150 -150
- package/lib/events/hooks/interactions.d.ts +1 -1
- package/lib/events/hooks/invite.d.ts +20 -20
- package/lib/events/hooks/message.d.ts +27 -27
- package/lib/events/hooks/presence.d.ts +11 -11
- package/lib/events/hooks/soundboard.d.ts +6 -6
- package/lib/events/hooks/stage.d.ts +2 -2
- package/lib/events/hooks/subscriptions.d.ts +3 -3
- package/lib/events/hooks/thread.d.ts +30 -30
- package/lib/events/hooks/voice.d.ts +3 -4
- package/lib/events/hooks/voice.js +2 -1
- package/lib/events/utils.d.ts +4 -0
- package/lib/events/utils.js +59 -0
- package/lib/index.d.ts +9 -4
- package/lib/index.js +13 -8
- package/lib/langs/handler.d.ts +14 -11
- package/lib/langs/handler.js +46 -9
- package/lib/langs/router.d.ts +10 -3
- package/lib/structures/Application.d.ts +1 -1
- package/lib/structures/Emoji.d.ts +3 -3
- package/lib/structures/Emoji.js +2 -2
- package/lib/structures/Guild.d.ts +154 -154
- package/lib/structures/GuildBan.d.ts +4 -4
- package/lib/structures/GuildBan.js +3 -3
- package/lib/structures/GuildMember.d.ts +7 -7
- package/lib/structures/GuildMember.js +28 -7
- package/lib/structures/GuildRole.d.ts +1 -1
- package/lib/structures/GuildRole.js +2 -2
- package/lib/structures/Interaction.d.ts +11 -9
- package/lib/structures/Interaction.js +33 -12
- package/lib/structures/Message.d.ts +21 -14
- package/lib/structures/Message.js +29 -14
- package/lib/structures/User.d.ts +1 -1
- package/lib/structures/VoiceState.d.ts +4 -0
- package/lib/structures/VoiceState.js +13 -1
- package/lib/structures/Webhook.d.ts +9 -1
- package/lib/structures/Webhook.js +4 -1
- package/lib/structures/channels.d.ts +148 -134
- package/lib/structures/channels.js +27 -26
- package/lib/structures/extra/BitField.d.ts +4 -4
- package/lib/structures/extra/BitField.js +20 -4
- package/lib/structures/extra/DiscordBase.js +1 -1
- package/lib/structures/extra/Permissions.d.ts +2 -4
- package/lib/structures/extra/Permissions.js +1 -17
- package/lib/types/payloads/_interactions/responses.d.ts +2 -2
- package/lib/types/payloads/components.d.ts +4 -4
- package/lib/websocket/SharedTypes.d.ts +4 -4
- package/lib/websocket/constants/index.d.ts +1 -1
- package/lib/websocket/constants/index.js +3 -2
- package/lib/websocket/discord/events/memberUpdate.js +2 -2
- package/lib/websocket/discord/heartbeater.d.ts +1 -0
- package/lib/websocket/discord/heartbeater.js +7 -0
- package/lib/websocket/discord/shard.d.ts +2 -2
- package/lib/websocket/discord/shard.js +15 -13
- package/lib/websocket/discord/sharder.d.ts +8 -7
- package/lib/websocket/discord/sharder.js +25 -5
- package/lib/websocket/discord/shared.d.ts +19 -6
- package/lib/websocket/discord/socket/custom.js +5 -0
- package/lib/websocket/discord/worker.d.ts +1 -0
- package/lib/websocket/discord/worker.js +2 -0
- package/lib/websocket/discord/workermanager.d.ts +25 -11
- package/lib/websocket/discord/workermanager.js +41 -10
- package/package.json +12 -16
|
@@ -15,77 +15,77 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
15
15
|
unavailable?: StructPropState<boolean, State, 'create'>;
|
|
16
16
|
constructor(client: UsingClient, data: APIGuild | GatewayGuildCreateDispatchData);
|
|
17
17
|
webhooks: {
|
|
18
|
-
list: () => Promise<import("
|
|
18
|
+
list: () => Promise<import("..").WebhookStructure[]>;
|
|
19
19
|
};
|
|
20
20
|
get maxStickers(): MaxStickers;
|
|
21
21
|
get maxEmojis(): MaxEmojis;
|
|
22
22
|
fetchOwner(force?: boolean): Promise<GuildMemberStructure | null>;
|
|
23
23
|
listActiveThreads(force?: boolean): Promise<ThreadChannelStructure[]>;
|
|
24
24
|
templates: {
|
|
25
|
-
fetch: (code: string) => Promise<import("
|
|
26
|
-
list: () => Promise<import("
|
|
27
|
-
create: (body: import("
|
|
28
|
-
sync: (code: string) => Promise<import("
|
|
29
|
-
edit: (code: string, body: import("
|
|
30
|
-
delete: (code: string) => Promise<import("
|
|
25
|
+
fetch: (code: string) => Promise<import("..").GuildTemplateStructure>;
|
|
26
|
+
list: () => Promise<import("..").GuildTemplateStructure[]>;
|
|
27
|
+
create: (body: import("..").RESTPostAPIGuildTemplatesJSONBody) => Promise<import("..").GuildTemplateStructure>;
|
|
28
|
+
sync: (code: string) => Promise<import("..").GuildTemplateStructure>;
|
|
29
|
+
edit: (code: string, body: import("..").RESTPatchAPIGuildTemplateJSONBody) => Promise<import("..").GuildTemplateStructure>;
|
|
30
|
+
delete: (code: string) => Promise<import("..").GuildTemplateStructure>;
|
|
31
31
|
};
|
|
32
32
|
stickers: {
|
|
33
|
-
list: () => Promise<import("
|
|
34
|
-
create: (payload: import("./Sticker").CreateStickerBodyRequest, reason?: string) => Promise<import("
|
|
35
|
-
edit: (stickerId: string, body: import("
|
|
36
|
-
fetch: (stickerId: string, force?: boolean) => Promise<import("
|
|
33
|
+
list: () => Promise<import("..").StickerStructure[]>;
|
|
34
|
+
create: (payload: import("./Sticker").CreateStickerBodyRequest, reason?: string) => Promise<import("..").StickerStructure>;
|
|
35
|
+
edit: (stickerId: string, body: import("..").RESTPatchAPIGuildStickerJSONBody, reason?: string) => Promise<import("..").StickerStructure>;
|
|
36
|
+
fetch: (stickerId: string, force?: boolean) => Promise<import("..").StickerStructure>;
|
|
37
37
|
delete: (stickerId: string, reason?: string) => Promise<void>;
|
|
38
38
|
};
|
|
39
39
|
members: {
|
|
40
40
|
resolve: (resolve: import("../common").GuildMemberResolvable) => Promise<GuildMemberStructure | undefined>;
|
|
41
|
-
search: (query
|
|
41
|
+
search: (query: import("..").RESTGetAPIGuildMembersSearchQuery) => Promise<GuildMemberStructure[]>;
|
|
42
42
|
unban: (id: string, reason?: string) => Promise<undefined>;
|
|
43
|
-
ban: (id: string,
|
|
43
|
+
ban: (id: string, options?: import("..").BanOptions) => Promise<void>;
|
|
44
44
|
kick: (id: string, reason?: string) => Promise<void>;
|
|
45
|
-
edit: (id: string, body: import("
|
|
46
|
-
add: (id: string, body: import("
|
|
45
|
+
edit: (id: string, body: import("..").RESTPatchAPIGuildMemberJSONBody, reason?: string) => Promise<GuildMemberStructure>;
|
|
46
|
+
add: (id: string, body: import("..").RESTPutAPIGuildMemberJSONBody) => Promise<GuildMemberStructure | undefined>;
|
|
47
47
|
addRole: (memberId: string, id: string) => Promise<undefined>;
|
|
48
48
|
removeRole: (memberId: string, id: string) => Promise<undefined>;
|
|
49
49
|
fetch: (memberId: string, force?: boolean) => Promise<GuildMemberStructure>;
|
|
50
|
-
list: (query?: import("
|
|
50
|
+
list: (query?: import("..").RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<GuildMemberStructure[]>;
|
|
51
51
|
};
|
|
52
52
|
moderationRules: {
|
|
53
|
-
list: () => Promise<import("
|
|
54
|
-
create: (body: import("
|
|
53
|
+
list: () => Promise<import("..").AutoModerationRuleStructure[]>;
|
|
54
|
+
create: (body: import("..").RESTPostAPIAutoModerationRuleJSONBody) => Promise<import("..").AutoModerationRuleStructure>;
|
|
55
55
|
delete: (ruleId: string, reason?: string) => Promise<undefined>;
|
|
56
|
-
fetch: (ruleId: string) => Promise<import("
|
|
57
|
-
edit: (ruleId: string, body: import("
|
|
56
|
+
fetch: (ruleId: string) => Promise<import("..").AutoModerationRuleStructure>;
|
|
57
|
+
edit: (ruleId: string, body: import("..").RESTPatchAPIAutoModerationRuleJSONBody, reason?: string) => Promise<import("..").AutoModerationRuleStructure>;
|
|
58
58
|
};
|
|
59
59
|
roles: {
|
|
60
|
-
create: (body: import("
|
|
61
|
-
list: (force?: boolean) => Promise<import("
|
|
62
|
-
edit: (roleId: string, body: import("
|
|
60
|
+
create: (body: import("..").RESTPostAPIGuildRoleJSONBody) => Promise<import("..").GuildRoleStructure>;
|
|
61
|
+
list: (force?: boolean) => Promise<import("..").GuildRoleStructure[]>;
|
|
62
|
+
edit: (roleId: string, body: import("..").RESTPatchAPIGuildRoleJSONBody, reason?: string) => Promise<import("..").GuildRoleStructure>;
|
|
63
63
|
delete: (roleId: string, reason?: string) => Promise<void>;
|
|
64
|
-
editPositions: (body: import("
|
|
65
|
-
memberCounts: () => Promise<import("
|
|
64
|
+
editPositions: (body: import("..").RESTPatchAPIGuildRolePositionsJSONBody) => Promise<import("..").GuildRoleStructure[]>;
|
|
65
|
+
memberCounts: () => Promise<import("..").RESTGetAPIGuildRoleMemberCountsResult>;
|
|
66
66
|
};
|
|
67
67
|
channels: {
|
|
68
68
|
list: (force?: boolean) => Promise<import("./channels").AllChannels[]>;
|
|
69
69
|
fetch: (id: string, force?: boolean) => Promise<import("./channels").AllChannels>;
|
|
70
|
-
create: <T extends import("./channels").GuildChannelTypes = import("./channels").GuildChannelTypes>(body: import("
|
|
70
|
+
create: <T extends import("./channels").GuildChannelTypes = import("./channels").GuildChannelTypes>(body: import("..").RESTPostAPIGuildChannelJSONBody & {
|
|
71
71
|
type: T;
|
|
72
|
-
}) => Promise<import("
|
|
72
|
+
}) => Promise<import("..").SeyfertChannelMap[T]>;
|
|
73
73
|
delete: (id: string, reason?: string) => Promise<import("./channels").AllChannels>;
|
|
74
|
-
edit: (id: string, body: import("
|
|
75
|
-
editPositions: (body: import("
|
|
74
|
+
edit: (id: string, body: import("..").RESTPatchAPIChannelJSONBody, reason?: string) => Promise<import("./channels").AllChannels>;
|
|
75
|
+
editPositions: (body: import("..").RESTPatchAPIGuildChannelPositionsJSONBody) => Promise<undefined>;
|
|
76
76
|
};
|
|
77
77
|
emojis: {
|
|
78
|
-
edit: (emojiId: string, body: import("
|
|
79
|
-
create: (body: Parameters<import("../common").EmojiShorter["create"]>[1]) => Promise<import("
|
|
80
|
-
fetch: (emojiId: string, force?: boolean) => Promise<import("
|
|
81
|
-
list: (force?: boolean) => Promise<import("
|
|
78
|
+
edit: (emojiId: string, body: import("..").RESTPatchAPIGuildEmojiJSONBody, reason?: string) => Promise<import("..").GuildEmojiStructure>;
|
|
79
|
+
create: (body: Parameters<import("../common").EmojiShorter["create"]>[1]) => Promise<import("..").GuildEmojiStructure>;
|
|
80
|
+
fetch: (emojiId: string, force?: boolean) => Promise<import("..").GuildEmojiStructure>;
|
|
81
|
+
list: (force?: boolean) => Promise<import("..").GuildEmojiStructure[]>;
|
|
82
82
|
};
|
|
83
83
|
bans: {
|
|
84
|
-
fetch: (userId: string, force?: boolean) => Promise<import("
|
|
85
|
-
list: (query?: import("
|
|
86
|
-
create: (memberId: string,
|
|
84
|
+
fetch: (userId: string, force?: boolean) => Promise<import("..").GuildBanStructure>;
|
|
85
|
+
list: (query?: import("..").RESTGetAPIGuildBansQuery, force?: boolean) => Promise<import("..").GuildBanStructure[]>;
|
|
86
|
+
create: (memberId: string, options?: Parameters<import("../common/shorters/bans").BanShorter["create"]>[2]) => Promise<void>;
|
|
87
87
|
remove: (memberId: string, reason?: string) => Promise<undefined>;
|
|
88
|
-
bulkCreate: (body: Parameters<import("../common/shorters/bans").BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("
|
|
88
|
+
bulkCreate: (body: Parameters<import("../common/shorters/bans").BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("..").RESTPostAPIGuildBulkBanResult>;
|
|
89
89
|
};
|
|
90
90
|
edit(body: RESTPatchAPIGuildJSONBody, reason?: string): Promise<GuildStructure<'api'>>;
|
|
91
91
|
searchMessages(query?: RESTGetAPIGuildMessagesSearchQuery, wait?: boolean): Promise<GuildSearchMessagesResult>;
|
|
@@ -104,15 +104,15 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
104
104
|
icon: string | null;
|
|
105
105
|
splash: string | null;
|
|
106
106
|
banner: string | null;
|
|
107
|
-
features: import("
|
|
108
|
-
verificationLevel: import("
|
|
107
|
+
features: import("..").GuildFeature[];
|
|
108
|
+
verificationLevel: import("..").GuildVerificationLevel;
|
|
109
109
|
vanityUrlCode: string | null;
|
|
110
110
|
premiumSubscriptionCount?: number | undefined;
|
|
111
|
-
nsfwLevel: import("
|
|
111
|
+
nsfwLevel: import("..").GuildNSFWLevel;
|
|
112
112
|
} | undefined;
|
|
113
113
|
channel: {
|
|
114
114
|
id: string;
|
|
115
|
-
type: import("
|
|
115
|
+
type: import("..").ChannelType;
|
|
116
116
|
name: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
inviter?: {
|
|
@@ -129,14 +129,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
129
129
|
locale?: string | undefined;
|
|
130
130
|
verified?: boolean | undefined;
|
|
131
131
|
email?: string | null | undefined;
|
|
132
|
-
flags?: import("
|
|
133
|
-
premiumType?: import("
|
|
134
|
-
publicFlags?: import("
|
|
135
|
-
avatarDecorationData?: import("
|
|
136
|
-
collectibles?: import("
|
|
137
|
-
primaryGuild?: import("
|
|
132
|
+
flags?: import("..").UserFlags | undefined;
|
|
133
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
134
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
135
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
136
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
137
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
138
138
|
} | undefined;
|
|
139
|
-
targetType?: import("
|
|
139
|
+
targetType?: import("..").InviteTargetType | undefined;
|
|
140
140
|
targetUser?: {
|
|
141
141
|
id: string;
|
|
142
142
|
username: string;
|
|
@@ -151,12 +151,12 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
151
151
|
locale?: string | undefined;
|
|
152
152
|
verified?: boolean | undefined;
|
|
153
153
|
email?: string | null | undefined;
|
|
154
|
-
flags?: import("
|
|
155
|
-
premiumType?: import("
|
|
156
|
-
publicFlags?: import("
|
|
157
|
-
avatarDecorationData?: import("
|
|
158
|
-
collectibles?: import("
|
|
159
|
-
primaryGuild?: import("
|
|
154
|
+
flags?: import("..").UserFlags | undefined;
|
|
155
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
156
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
157
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
158
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
159
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
160
160
|
} | undefined;
|
|
161
161
|
targetApplication?: {
|
|
162
162
|
id?: string | undefined;
|
|
@@ -166,26 +166,26 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
166
166
|
rpcOrigins?: string[] | undefined;
|
|
167
167
|
botPublic?: boolean | undefined;
|
|
168
168
|
botRequireCodeGrant?: boolean | undefined;
|
|
169
|
-
bot?: import("
|
|
169
|
+
bot?: import("..").APIUser | undefined;
|
|
170
170
|
termsOfServiceUrl?: string | undefined;
|
|
171
171
|
privacyPolicyUrl?: string | undefined;
|
|
172
|
-
owner?: import("
|
|
172
|
+
owner?: import("..").APIUser | undefined;
|
|
173
173
|
verifyKey?: string | undefined;
|
|
174
|
-
team?: import("
|
|
174
|
+
team?: import("..").APITeam | null | undefined;
|
|
175
175
|
guildId?: string | undefined;
|
|
176
176
|
guild?: APIPartialGuild | undefined;
|
|
177
177
|
primarySkuId?: string | undefined;
|
|
178
178
|
slug?: string | undefined;
|
|
179
179
|
coverImage?: string | undefined;
|
|
180
|
-
flags?: import("
|
|
180
|
+
flags?: import("..").ApplicationFlags | undefined;
|
|
181
181
|
approximateGuildCount?: number | undefined;
|
|
182
182
|
approximateUserInstallCount?: number | undefined;
|
|
183
183
|
redirectUris?: string[] | undefined;
|
|
184
184
|
interactionsEndpointUrl?: string | null | undefined;
|
|
185
185
|
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
186
186
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
187
|
-
installParams?: import("
|
|
188
|
-
integrationTypesConfig?: import("
|
|
187
|
+
installParams?: import("..").APIApplicationInstallParams | undefined;
|
|
188
|
+
integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
189
189
|
customInstallUrl?: string | undefined;
|
|
190
190
|
} | undefined;
|
|
191
191
|
approximatePresenceCount?: number | undefined;
|
|
@@ -201,14 +201,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
201
201
|
description?: string | null | undefined;
|
|
202
202
|
scheduledStartTime: string;
|
|
203
203
|
scheduledEndTime: string | null;
|
|
204
|
-
privacyLevel: import("
|
|
205
|
-
status: import("
|
|
206
|
-
entityType: import("
|
|
204
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
205
|
+
status: import("..").GuildScheduledEventStatus;
|
|
206
|
+
entityType: import("..").GuildScheduledEventEntityType.StageInstance;
|
|
207
207
|
entityId: string | null;
|
|
208
|
-
creator?: import("
|
|
208
|
+
creator?: import("..").APIUser | undefined;
|
|
209
209
|
userCount?: number | undefined;
|
|
210
210
|
image?: string | null | undefined;
|
|
211
|
-
recurrenceRule: import("
|
|
211
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
212
212
|
} | {
|
|
213
213
|
channelId: string;
|
|
214
214
|
entityMetadata: null;
|
|
@@ -219,14 +219,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
219
219
|
description?: string | null | undefined;
|
|
220
220
|
scheduledStartTime: string;
|
|
221
221
|
scheduledEndTime: string | null;
|
|
222
|
-
privacyLevel: import("
|
|
223
|
-
status: import("
|
|
224
|
-
entityType: import("
|
|
222
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
223
|
+
status: import("..").GuildScheduledEventStatus;
|
|
224
|
+
entityType: import("..").GuildScheduledEventEntityType.Voice;
|
|
225
225
|
entityId: string | null;
|
|
226
|
-
creator?: import("
|
|
226
|
+
creator?: import("..").APIUser | undefined;
|
|
227
227
|
userCount?: number | undefined;
|
|
228
228
|
image?: string | null | undefined;
|
|
229
|
-
recurrenceRule: import("
|
|
229
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
230
230
|
} | {
|
|
231
231
|
channelId: null;
|
|
232
232
|
entityMetadata: {
|
|
@@ -239,16 +239,16 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
239
239
|
description?: string | null | undefined;
|
|
240
240
|
scheduledStartTime: string;
|
|
241
241
|
scheduledEndTime: string | null;
|
|
242
|
-
privacyLevel: import("
|
|
243
|
-
status: import("
|
|
244
|
-
entityType: import("
|
|
242
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
243
|
+
status: import("..").GuildScheduledEventStatus;
|
|
244
|
+
entityType: import("..").GuildScheduledEventEntityType.External;
|
|
245
245
|
entityId: string | null;
|
|
246
|
-
creator?: import("
|
|
246
|
+
creator?: import("..").APIUser | undefined;
|
|
247
247
|
userCount?: number | undefined;
|
|
248
248
|
image?: string | null | undefined;
|
|
249
|
-
recurrenceRule: import("
|
|
249
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
250
250
|
} | undefined;
|
|
251
|
-
type: import("
|
|
251
|
+
type: import("..").InviteType;
|
|
252
252
|
}[]>;
|
|
253
253
|
create: (data: CreateInviteFromChannel) => Promise<{
|
|
254
254
|
uses: number;
|
|
@@ -264,15 +264,15 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
264
264
|
icon: string | null;
|
|
265
265
|
splash: string | null;
|
|
266
266
|
banner: string | null;
|
|
267
|
-
features: import("
|
|
268
|
-
verificationLevel: import("
|
|
267
|
+
features: import("..").GuildFeature[];
|
|
268
|
+
verificationLevel: import("..").GuildVerificationLevel;
|
|
269
269
|
vanityUrlCode: string | null;
|
|
270
270
|
premiumSubscriptionCount?: number | undefined;
|
|
271
|
-
nsfwLevel: import("
|
|
271
|
+
nsfwLevel: import("..").GuildNSFWLevel;
|
|
272
272
|
} | undefined;
|
|
273
273
|
channel: {
|
|
274
274
|
id: string;
|
|
275
|
-
type: import("
|
|
275
|
+
type: import("..").ChannelType;
|
|
276
276
|
name: string | null;
|
|
277
277
|
} | null;
|
|
278
278
|
inviter?: {
|
|
@@ -289,14 +289,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
289
289
|
locale?: string | undefined;
|
|
290
290
|
verified?: boolean | undefined;
|
|
291
291
|
email?: string | null | undefined;
|
|
292
|
-
flags?: import("
|
|
293
|
-
premiumType?: import("
|
|
294
|
-
publicFlags?: import("
|
|
295
|
-
avatarDecorationData?: import("
|
|
296
|
-
collectibles?: import("
|
|
297
|
-
primaryGuild?: import("
|
|
292
|
+
flags?: import("..").UserFlags | undefined;
|
|
293
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
294
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
295
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
296
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
297
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
298
298
|
} | undefined;
|
|
299
|
-
targetType?: import("
|
|
299
|
+
targetType?: import("..").InviteTargetType | undefined;
|
|
300
300
|
targetUser?: {
|
|
301
301
|
id: string;
|
|
302
302
|
username: string;
|
|
@@ -311,12 +311,12 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
311
311
|
locale?: string | undefined;
|
|
312
312
|
verified?: boolean | undefined;
|
|
313
313
|
email?: string | null | undefined;
|
|
314
|
-
flags?: import("
|
|
315
|
-
premiumType?: import("
|
|
316
|
-
publicFlags?: import("
|
|
317
|
-
avatarDecorationData?: import("
|
|
318
|
-
collectibles?: import("
|
|
319
|
-
primaryGuild?: import("
|
|
314
|
+
flags?: import("..").UserFlags | undefined;
|
|
315
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
316
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
317
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
318
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
319
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
320
320
|
} | undefined;
|
|
321
321
|
targetApplication?: {
|
|
322
322
|
id?: string | undefined;
|
|
@@ -326,26 +326,26 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
326
326
|
rpcOrigins?: string[] | undefined;
|
|
327
327
|
botPublic?: boolean | undefined;
|
|
328
328
|
botRequireCodeGrant?: boolean | undefined;
|
|
329
|
-
bot?: import("
|
|
329
|
+
bot?: import("..").APIUser | undefined;
|
|
330
330
|
termsOfServiceUrl?: string | undefined;
|
|
331
331
|
privacyPolicyUrl?: string | undefined;
|
|
332
|
-
owner?: import("
|
|
332
|
+
owner?: import("..").APIUser | undefined;
|
|
333
333
|
verifyKey?: string | undefined;
|
|
334
|
-
team?: import("
|
|
334
|
+
team?: import("..").APITeam | null | undefined;
|
|
335
335
|
guildId?: string | undefined;
|
|
336
336
|
guild?: APIPartialGuild | undefined;
|
|
337
337
|
primarySkuId?: string | undefined;
|
|
338
338
|
slug?: string | undefined;
|
|
339
339
|
coverImage?: string | undefined;
|
|
340
|
-
flags?: import("
|
|
340
|
+
flags?: import("..").ApplicationFlags | undefined;
|
|
341
341
|
approximateGuildCount?: number | undefined;
|
|
342
342
|
approximateUserInstallCount?: number | undefined;
|
|
343
343
|
redirectUris?: string[] | undefined;
|
|
344
344
|
interactionsEndpointUrl?: string | null | undefined;
|
|
345
345
|
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
346
346
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
347
|
-
installParams?: import("
|
|
348
|
-
integrationTypesConfig?: import("
|
|
347
|
+
installParams?: import("..").APIApplicationInstallParams | undefined;
|
|
348
|
+
integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
349
349
|
customInstallUrl?: string | undefined;
|
|
350
350
|
} | undefined;
|
|
351
351
|
approximatePresenceCount?: number | undefined;
|
|
@@ -361,14 +361,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
361
361
|
description?: string | null | undefined;
|
|
362
362
|
scheduledStartTime: string;
|
|
363
363
|
scheduledEndTime: string | null;
|
|
364
|
-
privacyLevel: import("
|
|
365
|
-
status: import("
|
|
366
|
-
entityType: import("
|
|
364
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
365
|
+
status: import("..").GuildScheduledEventStatus;
|
|
366
|
+
entityType: import("..").GuildScheduledEventEntityType.StageInstance;
|
|
367
367
|
entityId: string | null;
|
|
368
|
-
creator?: import("
|
|
368
|
+
creator?: import("..").APIUser | undefined;
|
|
369
369
|
userCount?: number | undefined;
|
|
370
370
|
image?: string | null | undefined;
|
|
371
|
-
recurrenceRule: import("
|
|
371
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
372
372
|
} | {
|
|
373
373
|
channelId: string;
|
|
374
374
|
entityMetadata: null;
|
|
@@ -379,14 +379,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
379
379
|
description?: string | null | undefined;
|
|
380
380
|
scheduledStartTime: string;
|
|
381
381
|
scheduledEndTime: string | null;
|
|
382
|
-
privacyLevel: import("
|
|
383
|
-
status: import("
|
|
384
|
-
entityType: import("
|
|
382
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
383
|
+
status: import("..").GuildScheduledEventStatus;
|
|
384
|
+
entityType: import("..").GuildScheduledEventEntityType.Voice;
|
|
385
385
|
entityId: string | null;
|
|
386
|
-
creator?: import("
|
|
386
|
+
creator?: import("..").APIUser | undefined;
|
|
387
387
|
userCount?: number | undefined;
|
|
388
388
|
image?: string | null | undefined;
|
|
389
|
-
recurrenceRule: import("
|
|
389
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
390
390
|
} | {
|
|
391
391
|
channelId: null;
|
|
392
392
|
entityMetadata: {
|
|
@@ -399,16 +399,16 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
399
399
|
description?: string | null | undefined;
|
|
400
400
|
scheduledStartTime: string;
|
|
401
401
|
scheduledEndTime: string | null;
|
|
402
|
-
privacyLevel: import("
|
|
403
|
-
status: import("
|
|
404
|
-
entityType: import("
|
|
402
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
403
|
+
status: import("..").GuildScheduledEventStatus;
|
|
404
|
+
entityType: import("..").GuildScheduledEventEntityType.External;
|
|
405
405
|
entityId: string | null;
|
|
406
|
-
creator?: import("
|
|
406
|
+
creator?: import("..").APIUser | undefined;
|
|
407
407
|
userCount?: number | undefined;
|
|
408
408
|
image?: string | null | undefined;
|
|
409
|
-
recurrenceRule: import("
|
|
409
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
410
410
|
} | undefined;
|
|
411
|
-
type: import("
|
|
411
|
+
type: import("..").InviteType;
|
|
412
412
|
}>;
|
|
413
413
|
delete: (code: string, reason?: string) => Promise<{
|
|
414
414
|
code: string;
|
|
@@ -419,15 +419,15 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
419
419
|
icon: string | null;
|
|
420
420
|
splash: string | null;
|
|
421
421
|
banner: string | null;
|
|
422
|
-
features: import("
|
|
423
|
-
verificationLevel: import("
|
|
422
|
+
features: import("..").GuildFeature[];
|
|
423
|
+
verificationLevel: import("..").GuildVerificationLevel;
|
|
424
424
|
vanityUrlCode: string | null;
|
|
425
425
|
premiumSubscriptionCount?: number | undefined;
|
|
426
|
-
nsfwLevel: import("
|
|
426
|
+
nsfwLevel: import("..").GuildNSFWLevel;
|
|
427
427
|
} | undefined;
|
|
428
428
|
channel: {
|
|
429
429
|
id: string;
|
|
430
|
-
type: import("
|
|
430
|
+
type: import("..").ChannelType;
|
|
431
431
|
name: string | null;
|
|
432
432
|
} | null;
|
|
433
433
|
inviter?: {
|
|
@@ -444,14 +444,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
444
444
|
locale?: string | undefined;
|
|
445
445
|
verified?: boolean | undefined;
|
|
446
446
|
email?: string | null | undefined;
|
|
447
|
-
flags?: import("
|
|
448
|
-
premiumType?: import("
|
|
449
|
-
publicFlags?: import("
|
|
450
|
-
avatarDecorationData?: import("
|
|
451
|
-
collectibles?: import("
|
|
452
|
-
primaryGuild?: import("
|
|
447
|
+
flags?: import("..").UserFlags | undefined;
|
|
448
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
449
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
450
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
451
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
452
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
453
453
|
} | undefined;
|
|
454
|
-
targetType?: import("
|
|
454
|
+
targetType?: import("..").InviteTargetType | undefined;
|
|
455
455
|
targetUser?: {
|
|
456
456
|
id: string;
|
|
457
457
|
username: string;
|
|
@@ -466,12 +466,12 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
466
466
|
locale?: string | undefined;
|
|
467
467
|
verified?: boolean | undefined;
|
|
468
468
|
email?: string | null | undefined;
|
|
469
|
-
flags?: import("
|
|
470
|
-
premiumType?: import("
|
|
471
|
-
publicFlags?: import("
|
|
472
|
-
avatarDecorationData?: import("
|
|
473
|
-
collectibles?: import("
|
|
474
|
-
primaryGuild?: import("
|
|
469
|
+
flags?: import("..").UserFlags | undefined;
|
|
470
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
471
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
472
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
473
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
474
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
475
475
|
} | undefined;
|
|
476
476
|
targetApplication?: {
|
|
477
477
|
id?: string | undefined;
|
|
@@ -481,26 +481,26 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
481
481
|
rpcOrigins?: string[] | undefined;
|
|
482
482
|
botPublic?: boolean | undefined;
|
|
483
483
|
botRequireCodeGrant?: boolean | undefined;
|
|
484
|
-
bot?: import("
|
|
484
|
+
bot?: import("..").APIUser | undefined;
|
|
485
485
|
termsOfServiceUrl?: string | undefined;
|
|
486
486
|
privacyPolicyUrl?: string | undefined;
|
|
487
|
-
owner?: import("
|
|
487
|
+
owner?: import("..").APIUser | undefined;
|
|
488
488
|
verifyKey?: string | undefined;
|
|
489
|
-
team?: import("
|
|
489
|
+
team?: import("..").APITeam | null | undefined;
|
|
490
490
|
guildId?: string | undefined;
|
|
491
491
|
guild?: APIPartialGuild | undefined;
|
|
492
492
|
primarySkuId?: string | undefined;
|
|
493
493
|
slug?: string | undefined;
|
|
494
494
|
coverImage?: string | undefined;
|
|
495
|
-
flags?: import("
|
|
495
|
+
flags?: import("..").ApplicationFlags | undefined;
|
|
496
496
|
approximateGuildCount?: number | undefined;
|
|
497
497
|
approximateUserInstallCount?: number | undefined;
|
|
498
498
|
redirectUris?: string[] | undefined;
|
|
499
499
|
interactionsEndpointUrl?: string | null | undefined;
|
|
500
500
|
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
501
501
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
502
|
-
installParams?: import("
|
|
503
|
-
integrationTypesConfig?: import("
|
|
502
|
+
installParams?: import("..").APIApplicationInstallParams | undefined;
|
|
503
|
+
integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
504
504
|
customInstallUrl?: string | undefined;
|
|
505
505
|
} | undefined;
|
|
506
506
|
approximatePresenceCount?: number | undefined;
|
|
@@ -516,14 +516,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
516
516
|
description?: string | null | undefined;
|
|
517
517
|
scheduledStartTime: string;
|
|
518
518
|
scheduledEndTime: string | null;
|
|
519
|
-
privacyLevel: import("
|
|
520
|
-
status: import("
|
|
521
|
-
entityType: import("
|
|
519
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
520
|
+
status: import("..").GuildScheduledEventStatus;
|
|
521
|
+
entityType: import("..").GuildScheduledEventEntityType.StageInstance;
|
|
522
522
|
entityId: string | null;
|
|
523
|
-
creator?: import("
|
|
523
|
+
creator?: import("..").APIUser | undefined;
|
|
524
524
|
userCount?: number | undefined;
|
|
525
525
|
image?: string | null | undefined;
|
|
526
|
-
recurrenceRule: import("
|
|
526
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
527
527
|
} | {
|
|
528
528
|
channelId: string;
|
|
529
529
|
entityMetadata: null;
|
|
@@ -534,14 +534,14 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
534
534
|
description?: string | null | undefined;
|
|
535
535
|
scheduledStartTime: string;
|
|
536
536
|
scheduledEndTime: string | null;
|
|
537
|
-
privacyLevel: import("
|
|
538
|
-
status: import("
|
|
539
|
-
entityType: import("
|
|
537
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
538
|
+
status: import("..").GuildScheduledEventStatus;
|
|
539
|
+
entityType: import("..").GuildScheduledEventEntityType.Voice;
|
|
540
540
|
entityId: string | null;
|
|
541
|
-
creator?: import("
|
|
541
|
+
creator?: import("..").APIUser | undefined;
|
|
542
542
|
userCount?: number | undefined;
|
|
543
543
|
image?: string | null | undefined;
|
|
544
|
-
recurrenceRule: import("
|
|
544
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
545
545
|
} | {
|
|
546
546
|
channelId: null;
|
|
547
547
|
entityMetadata: {
|
|
@@ -554,16 +554,16 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
|
|
|
554
554
|
description?: string | null | undefined;
|
|
555
555
|
scheduledStartTime: string;
|
|
556
556
|
scheduledEndTime: string | null;
|
|
557
|
-
privacyLevel: import("
|
|
558
|
-
status: import("
|
|
559
|
-
entityType: import("
|
|
557
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
558
|
+
status: import("..").GuildScheduledEventStatus;
|
|
559
|
+
entityType: import("..").GuildScheduledEventEntityType.External;
|
|
560
560
|
entityId: string | null;
|
|
561
|
-
creator?: import("
|
|
561
|
+
creator?: import("..").APIUser | undefined;
|
|
562
562
|
userCount?: number | undefined;
|
|
563
563
|
image?: string | null | undefined;
|
|
564
|
-
recurrenceRule: import("
|
|
564
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
565
565
|
} | undefined;
|
|
566
|
-
type: import("
|
|
566
|
+
type: import("..").InviteType;
|
|
567
567
|
}>;
|
|
568
568
|
};
|
|
569
569
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReturnCache } from '../cache';
|
|
2
2
|
import type { GuildBanStructure, GuildStructure } from '../client';
|
|
3
3
|
import type { UsingClient } from '../commands';
|
|
4
|
-
import { type MethodContext, type ObjectToLower } from '../common';
|
|
4
|
+
import { type BanOptions, type MethodContext, type ObjectToLower } from '../common';
|
|
5
5
|
import type { BanShorter } from '../common/shorters/bans';
|
|
6
6
|
import type { ActuallyBan, APIBan, RESTGetAPIGuildBansQuery } from '../types';
|
|
7
7
|
import { DiscordBase } from './extra/DiscordBase';
|
|
@@ -10,7 +10,7 @@ export interface GuildBan extends DiscordBase, ObjectToLower<Omit<APIBan, 'id'>>
|
|
|
10
10
|
export declare class GuildBan extends DiscordBase {
|
|
11
11
|
readonly guildId: string;
|
|
12
12
|
constructor(client: UsingClient, data: APIBan | ActuallyBan, guildId: string);
|
|
13
|
-
create(
|
|
13
|
+
create(options?: BanOptions): Promise<void>;
|
|
14
14
|
remove(reason?: string): Promise<undefined>;
|
|
15
15
|
guild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'>>;
|
|
16
16
|
guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
|
|
@@ -21,8 +21,8 @@ export declare class GuildBan extends DiscordBase {
|
|
|
21
21
|
}>): {
|
|
22
22
|
fetch: (userId: string, force?: boolean) => Promise<GuildBanStructure>;
|
|
23
23
|
list: (query?: RESTGetAPIGuildBansQuery, force?: boolean) => Promise<GuildBanStructure[]>;
|
|
24
|
-
create: (memberId: string,
|
|
24
|
+
create: (memberId: string, options?: Parameters<BanShorter["create"]>[2]) => Promise<void>;
|
|
25
25
|
remove: (memberId: string, reason?: string) => Promise<undefined>;
|
|
26
|
-
bulkCreate: (body: Parameters<BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("
|
|
26
|
+
bulkCreate: (body: Parameters<BanShorter["bulkCreate"]>[1], reason?: string) => Promise<import("..").RESTPostAPIGuildBulkBanResult>;
|
|
27
27
|
};
|
|
28
28
|
}
|