seyfert 4.4.1 → 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/README.md +7 -1
- 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 +29 -4
- package/lib/client/client.js +38 -13
- 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 +11 -2
- package/lib/client/workerclient.js +33 -22
- 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 +14 -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 +16 -14
- package/lib/websocket/discord/sharder.d.ts +8 -7
- package/lib/websocket/discord/sharder.js +26 -6
- 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 +13 -17
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RawFile } from '../api/shared';
|
|
2
|
+
import type { ReturnCache } from '../cache';
|
|
2
3
|
import type { Overwrites } from '../cache/resources/overwrites';
|
|
3
|
-
import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type DirectoryChannelStructure, type DMChannelStructure, type ForumChannelStructure, type GuildMemberStructure, type GuildStructure, type MediaChannelStructure, type MessageStructure, type NewsChannelStructure, type StageChannelStructure, type TextGuildChannelStructure, type ThreadChannelStructure, type UserStructure, type VoiceChannelStructure, type VoiceStateStructure, type WebhookStructure } from '../client';
|
|
4
|
+
import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type DirectoryChannelStructure, type DMChannelStructure, type ForumChannelStructure, type GuildMemberStructure, type GuildStructure, type MediaChannelStructure, type MessageStructure, type NewsChannelStructure, type StageChannelStructure, type TextGuildChannelStructure, type ThreadChannelStructure, type UserStructure, type VoiceChannelStructure, type VoiceStateStructure, type WebhookStructure } from '../client/transformers';
|
|
4
5
|
import type { SeyfertChannelMap, UsingClient } from '../commands';
|
|
5
|
-
import {
|
|
6
|
+
import type { ChannelShorterOverwriteBody } from '../common/shorters/channels';
|
|
7
|
+
import type { CreateInviteFromChannel } from '../common/shorters/invites';
|
|
8
|
+
import type { MethodContext } from '../common/types/options';
|
|
9
|
+
import type { EmojiResolvable } from '../common/types/resolvables';
|
|
10
|
+
import type { ObjectToLower, StringToNumber, ToClass } from '../common/types/util';
|
|
11
|
+
import type { MessageCreateBodyRequest, MessageUpdateBodyRequest, ThreadOnlyCreateBodyRequest } from '../common/types/write';
|
|
6
12
|
import { type APIChannelBase, type APIDMChannel, type APIGuildCategoryChannel, type APIGuildChannel, type APIGuildForumChannel, type APIGuildForumDefaultReactionEmoji, type APIGuildForumTag, type APIGuildMediaChannel, type APIGuildStageVoiceChannel, type APIGuildVoiceChannel, type APINewsChannel, type APITextChannel, type APIThreadChannel, ChannelType, type RESTGetAPIChannelMessageReactionUsersQuery, type RESTGetAPIChannelMessagesPinsQuery, type RESTGetAPIChannelMessagesQuery, type RESTPatchAPIChannelJSONBody, type RESTPatchAPIGuildChannelPositionsJSONBody, type RESTPostAPIChannelWebhookJSONBody, type RESTPostAPIGuildChannelJSONBody, type SortOrderType, type ThreadAutoArchiveDuration, VideoQualityMode } from '../types';
|
|
7
13
|
import { DiscordBase } from './extra/DiscordBase';
|
|
8
14
|
import type { GuildMember } from './GuildMember';
|
|
@@ -13,10 +19,10 @@ export declare class BaseNoEditableChannel<T extends ChannelType> extends Discor
|
|
|
13
19
|
static __intent__(id: '@me'): 'DirectMessages';
|
|
14
20
|
static __intent__(id: string): 'DirectMessages' | 'Guilds';
|
|
15
21
|
/** The URL to the channel */
|
|
16
|
-
get url(): string
|
|
22
|
+
get url(): `https://discord.com/channels/${string}/${string}`;
|
|
17
23
|
fetch(mode?: 'rest' | 'flow'): Promise<AllChannels>;
|
|
18
24
|
fetch(mode: 'cache'): ReturnCache<AllChannels | undefined>;
|
|
19
|
-
delete(reason?: string): Promise<
|
|
25
|
+
delete(reason?: string): Promise<this>;
|
|
20
26
|
toString(): `<#${string}>`;
|
|
21
27
|
isStage(): this is StageChannel;
|
|
22
28
|
isMedia(): this is MediaChannel;
|
|
@@ -30,6 +36,8 @@ export declare class BaseNoEditableChannel<T extends ChannelType> extends Discor
|
|
|
30
36
|
isNews(): this is NewsChannel;
|
|
31
37
|
isTextable(): this is AllTextableChannels;
|
|
32
38
|
isGuildTextable(): this is AllGuildTextableChannels;
|
|
39
|
+
isNamed(): this is AllNamedChannels;
|
|
40
|
+
isGuild(): this is AllGuildChannels | BaseGuildChannelStructure;
|
|
33
41
|
isThreadOnly(): this is ForumChannel | MediaChannel;
|
|
34
42
|
is<T extends (keyof IChannelTypes)[]>(channelTypes: T): this is IChannelTypes[T[number]];
|
|
35
43
|
static allMethods(ctx: MethodContext<{
|
|
@@ -82,11 +90,11 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
82
90
|
icon: string | null;
|
|
83
91
|
splash: string | null;
|
|
84
92
|
banner: string | null;
|
|
85
|
-
features: import("
|
|
86
|
-
verificationLevel: import("
|
|
93
|
+
features: import("..").GuildFeature[];
|
|
94
|
+
verificationLevel: import("..").GuildVerificationLevel;
|
|
87
95
|
vanityUrlCode: string | null;
|
|
88
96
|
premiumSubscriptionCount?: number | undefined;
|
|
89
|
-
nsfwLevel: import("
|
|
97
|
+
nsfwLevel: import("..").GuildNSFWLevel;
|
|
90
98
|
} | undefined;
|
|
91
99
|
channel: {
|
|
92
100
|
id: string;
|
|
@@ -107,14 +115,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
107
115
|
locale?: string | undefined;
|
|
108
116
|
verified?: boolean | undefined;
|
|
109
117
|
email?: string | null | undefined;
|
|
110
|
-
flags?: import("
|
|
111
|
-
premiumType?: import("
|
|
112
|
-
publicFlags?: import("
|
|
113
|
-
avatarDecorationData?: import("
|
|
114
|
-
collectibles?: import("
|
|
115
|
-
primaryGuild?: import("
|
|
118
|
+
flags?: import("..").UserFlags | undefined;
|
|
119
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
120
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
121
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
122
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
123
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
116
124
|
} | undefined;
|
|
117
|
-
targetType?: import("
|
|
125
|
+
targetType?: import("..").InviteTargetType | undefined;
|
|
118
126
|
targetUser?: {
|
|
119
127
|
id: string;
|
|
120
128
|
username: string;
|
|
@@ -129,12 +137,12 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
129
137
|
locale?: string | undefined;
|
|
130
138
|
verified?: boolean | undefined;
|
|
131
139
|
email?: string | null | undefined;
|
|
132
|
-
flags?: import("
|
|
133
|
-
premiumType?: import("
|
|
134
|
-
publicFlags?: import("
|
|
135
|
-
avatarDecorationData?: import("
|
|
136
|
-
collectibles?: import("
|
|
137
|
-
primaryGuild?: import("
|
|
140
|
+
flags?: import("..").UserFlags | undefined;
|
|
141
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
142
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
143
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
144
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
145
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
138
146
|
} | undefined;
|
|
139
147
|
targetApplication?: {
|
|
140
148
|
id?: string | undefined;
|
|
@@ -144,26 +152,26 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
144
152
|
rpcOrigins?: string[] | undefined;
|
|
145
153
|
botPublic?: boolean | undefined;
|
|
146
154
|
botRequireCodeGrant?: boolean | undefined;
|
|
147
|
-
bot?: import("
|
|
155
|
+
bot?: import("..").APIUser | undefined;
|
|
148
156
|
termsOfServiceUrl?: string | undefined;
|
|
149
157
|
privacyPolicyUrl?: string | undefined;
|
|
150
|
-
owner?: import("
|
|
158
|
+
owner?: import("..").APIUser | undefined;
|
|
151
159
|
verifyKey?: string | undefined;
|
|
152
|
-
team?: import("
|
|
160
|
+
team?: import("..").APITeam | null | undefined;
|
|
153
161
|
guildId?: string | undefined;
|
|
154
|
-
guild?: import("
|
|
162
|
+
guild?: import("..").APIPartialGuild | undefined;
|
|
155
163
|
primarySkuId?: string | undefined;
|
|
156
164
|
slug?: string | undefined;
|
|
157
165
|
coverImage?: string | undefined;
|
|
158
|
-
flags?: import("
|
|
166
|
+
flags?: import("..").ApplicationFlags | undefined;
|
|
159
167
|
approximateGuildCount?: number | undefined;
|
|
160
168
|
approximateUserInstallCount?: number | undefined;
|
|
161
169
|
redirectUris?: string[] | undefined;
|
|
162
170
|
interactionsEndpointUrl?: string | null | undefined;
|
|
163
171
|
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
164
172
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
165
|
-
installParams?: import("
|
|
166
|
-
integrationTypesConfig?: import("
|
|
173
|
+
installParams?: import("..").APIApplicationInstallParams | undefined;
|
|
174
|
+
integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
167
175
|
customInstallUrl?: string | undefined;
|
|
168
176
|
} | undefined;
|
|
169
177
|
approximatePresenceCount?: number | undefined;
|
|
@@ -179,14 +187,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
179
187
|
description?: string | null | undefined;
|
|
180
188
|
scheduledStartTime: string;
|
|
181
189
|
scheduledEndTime: string | null;
|
|
182
|
-
privacyLevel: import("
|
|
183
|
-
status: import("
|
|
184
|
-
entityType: import("
|
|
190
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
191
|
+
status: import("..").GuildScheduledEventStatus;
|
|
192
|
+
entityType: import("..").GuildScheduledEventEntityType.StageInstance;
|
|
185
193
|
entityId: string | null;
|
|
186
|
-
creator?: import("
|
|
194
|
+
creator?: import("..").APIUser | undefined;
|
|
187
195
|
userCount?: number | undefined;
|
|
188
196
|
image?: string | null | undefined;
|
|
189
|
-
recurrenceRule: import("
|
|
197
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
190
198
|
} | {
|
|
191
199
|
channelId: string;
|
|
192
200
|
entityMetadata: null;
|
|
@@ -197,14 +205,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
197
205
|
description?: string | null | undefined;
|
|
198
206
|
scheduledStartTime: string;
|
|
199
207
|
scheduledEndTime: string | null;
|
|
200
|
-
privacyLevel: import("
|
|
201
|
-
status: import("
|
|
202
|
-
entityType: import("
|
|
208
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
209
|
+
status: import("..").GuildScheduledEventStatus;
|
|
210
|
+
entityType: import("..").GuildScheduledEventEntityType.Voice;
|
|
203
211
|
entityId: string | null;
|
|
204
|
-
creator?: import("
|
|
212
|
+
creator?: import("..").APIUser | undefined;
|
|
205
213
|
userCount?: number | undefined;
|
|
206
214
|
image?: string | null | undefined;
|
|
207
|
-
recurrenceRule: import("
|
|
215
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
208
216
|
} | {
|
|
209
217
|
channelId: null;
|
|
210
218
|
entityMetadata: {
|
|
@@ -217,16 +225,16 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
217
225
|
description?: string | null | undefined;
|
|
218
226
|
scheduledStartTime: string;
|
|
219
227
|
scheduledEndTime: string | null;
|
|
220
|
-
privacyLevel: import("
|
|
221
|
-
status: import("
|
|
222
|
-
entityType: import("
|
|
228
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
229
|
+
status: import("..").GuildScheduledEventStatus;
|
|
230
|
+
entityType: import("..").GuildScheduledEventEntityType.External;
|
|
223
231
|
entityId: string | null;
|
|
224
|
-
creator?: import("
|
|
232
|
+
creator?: import("..").APIUser | undefined;
|
|
225
233
|
userCount?: number | undefined;
|
|
226
234
|
image?: string | null | undefined;
|
|
227
|
-
recurrenceRule: import("
|
|
235
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
228
236
|
} | undefined;
|
|
229
|
-
type: import("
|
|
237
|
+
type: import("..").InviteType;
|
|
230
238
|
roles?: {
|
|
231
239
|
id: string;
|
|
232
240
|
name: string;
|
|
@@ -255,11 +263,11 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
255
263
|
icon: string | null;
|
|
256
264
|
splash: string | null;
|
|
257
265
|
banner: string | null;
|
|
258
|
-
features: import("
|
|
259
|
-
verificationLevel: import("
|
|
266
|
+
features: import("..").GuildFeature[];
|
|
267
|
+
verificationLevel: import("..").GuildVerificationLevel;
|
|
260
268
|
vanityUrlCode: string | null;
|
|
261
269
|
premiumSubscriptionCount?: number | undefined;
|
|
262
|
-
nsfwLevel: import("
|
|
270
|
+
nsfwLevel: import("..").GuildNSFWLevel;
|
|
263
271
|
} | undefined;
|
|
264
272
|
channel: {
|
|
265
273
|
id: string;
|
|
@@ -280,14 +288,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
280
288
|
locale?: string | undefined;
|
|
281
289
|
verified?: boolean | undefined;
|
|
282
290
|
email?: string | null | undefined;
|
|
283
|
-
flags?: import("
|
|
284
|
-
premiumType?: import("
|
|
285
|
-
publicFlags?: import("
|
|
286
|
-
avatarDecorationData?: import("
|
|
287
|
-
collectibles?: import("
|
|
288
|
-
primaryGuild?: import("
|
|
291
|
+
flags?: import("..").UserFlags | undefined;
|
|
292
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
293
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
294
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
295
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
296
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
289
297
|
} | undefined;
|
|
290
|
-
targetType?: import("
|
|
298
|
+
targetType?: import("..").InviteTargetType | undefined;
|
|
291
299
|
targetUser?: {
|
|
292
300
|
id: string;
|
|
293
301
|
username: string;
|
|
@@ -302,12 +310,12 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
302
310
|
locale?: string | undefined;
|
|
303
311
|
verified?: boolean | undefined;
|
|
304
312
|
email?: string | null | undefined;
|
|
305
|
-
flags?: import("
|
|
306
|
-
premiumType?: import("
|
|
307
|
-
publicFlags?: import("
|
|
308
|
-
avatarDecorationData?: import("
|
|
309
|
-
collectibles?: import("
|
|
310
|
-
primaryGuild?: import("
|
|
313
|
+
flags?: import("..").UserFlags | undefined;
|
|
314
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
315
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
316
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
317
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
318
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
311
319
|
} | undefined;
|
|
312
320
|
targetApplication?: {
|
|
313
321
|
id?: string | undefined;
|
|
@@ -317,26 +325,26 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
317
325
|
rpcOrigins?: string[] | undefined;
|
|
318
326
|
botPublic?: boolean | undefined;
|
|
319
327
|
botRequireCodeGrant?: boolean | undefined;
|
|
320
|
-
bot?: import("
|
|
328
|
+
bot?: import("..").APIUser | undefined;
|
|
321
329
|
termsOfServiceUrl?: string | undefined;
|
|
322
330
|
privacyPolicyUrl?: string | undefined;
|
|
323
|
-
owner?: import("
|
|
331
|
+
owner?: import("..").APIUser | undefined;
|
|
324
332
|
verifyKey?: string | undefined;
|
|
325
|
-
team?: import("
|
|
333
|
+
team?: import("..").APITeam | null | undefined;
|
|
326
334
|
guildId?: string | undefined;
|
|
327
|
-
guild?: import("
|
|
335
|
+
guild?: import("..").APIPartialGuild | undefined;
|
|
328
336
|
primarySkuId?: string | undefined;
|
|
329
337
|
slug?: string | undefined;
|
|
330
338
|
coverImage?: string | undefined;
|
|
331
|
-
flags?: import("
|
|
339
|
+
flags?: import("..").ApplicationFlags | undefined;
|
|
332
340
|
approximateGuildCount?: number | undefined;
|
|
333
341
|
approximateUserInstallCount?: number | undefined;
|
|
334
342
|
redirectUris?: string[] | undefined;
|
|
335
343
|
interactionsEndpointUrl?: string | null | undefined;
|
|
336
344
|
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
337
345
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
338
|
-
installParams?: import("
|
|
339
|
-
integrationTypesConfig?: import("
|
|
346
|
+
installParams?: import("..").APIApplicationInstallParams | undefined;
|
|
347
|
+
integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
340
348
|
customInstallUrl?: string | undefined;
|
|
341
349
|
} | undefined;
|
|
342
350
|
approximatePresenceCount?: number | undefined;
|
|
@@ -352,14 +360,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
352
360
|
description?: string | null | undefined;
|
|
353
361
|
scheduledStartTime: string;
|
|
354
362
|
scheduledEndTime: string | null;
|
|
355
|
-
privacyLevel: import("
|
|
356
|
-
status: import("
|
|
357
|
-
entityType: import("
|
|
363
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
364
|
+
status: import("..").GuildScheduledEventStatus;
|
|
365
|
+
entityType: import("..").GuildScheduledEventEntityType.StageInstance;
|
|
358
366
|
entityId: string | null;
|
|
359
|
-
creator?: import("
|
|
367
|
+
creator?: import("..").APIUser | undefined;
|
|
360
368
|
userCount?: number | undefined;
|
|
361
369
|
image?: string | null | undefined;
|
|
362
|
-
recurrenceRule: import("
|
|
370
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
363
371
|
} | {
|
|
364
372
|
channelId: string;
|
|
365
373
|
entityMetadata: null;
|
|
@@ -370,14 +378,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
370
378
|
description?: string | null | undefined;
|
|
371
379
|
scheduledStartTime: string;
|
|
372
380
|
scheduledEndTime: string | null;
|
|
373
|
-
privacyLevel: import("
|
|
374
|
-
status: import("
|
|
375
|
-
entityType: import("
|
|
381
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
382
|
+
status: import("..").GuildScheduledEventStatus;
|
|
383
|
+
entityType: import("..").GuildScheduledEventEntityType.Voice;
|
|
376
384
|
entityId: string | null;
|
|
377
|
-
creator?: import("
|
|
385
|
+
creator?: import("..").APIUser | undefined;
|
|
378
386
|
userCount?: number | undefined;
|
|
379
387
|
image?: string | null | undefined;
|
|
380
|
-
recurrenceRule: import("
|
|
388
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
381
389
|
} | {
|
|
382
390
|
channelId: null;
|
|
383
391
|
entityMetadata: {
|
|
@@ -390,16 +398,16 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
390
398
|
description?: string | null | undefined;
|
|
391
399
|
scheduledStartTime: string;
|
|
392
400
|
scheduledEndTime: string | null;
|
|
393
|
-
privacyLevel: import("
|
|
394
|
-
status: import("
|
|
395
|
-
entityType: import("
|
|
401
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
402
|
+
status: import("..").GuildScheduledEventStatus;
|
|
403
|
+
entityType: import("..").GuildScheduledEventEntityType.External;
|
|
396
404
|
entityId: string | null;
|
|
397
|
-
creator?: import("
|
|
405
|
+
creator?: import("..").APIUser | undefined;
|
|
398
406
|
userCount?: number | undefined;
|
|
399
407
|
image?: string | null | undefined;
|
|
400
|
-
recurrenceRule: import("
|
|
408
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
401
409
|
} | undefined;
|
|
402
|
-
type: import("
|
|
410
|
+
type: import("..").InviteType;
|
|
403
411
|
}>;
|
|
404
412
|
delete: (code: string, reason?: string) => Promise<{
|
|
405
413
|
code: string;
|
|
@@ -410,11 +418,11 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
410
418
|
icon: string | null;
|
|
411
419
|
splash: string | null;
|
|
412
420
|
banner: string | null;
|
|
413
|
-
features: import("
|
|
414
|
-
verificationLevel: import("
|
|
421
|
+
features: import("..").GuildFeature[];
|
|
422
|
+
verificationLevel: import("..").GuildVerificationLevel;
|
|
415
423
|
vanityUrlCode: string | null;
|
|
416
424
|
premiumSubscriptionCount?: number | undefined;
|
|
417
|
-
nsfwLevel: import("
|
|
425
|
+
nsfwLevel: import("..").GuildNSFWLevel;
|
|
418
426
|
} | undefined;
|
|
419
427
|
channel: {
|
|
420
428
|
id: string;
|
|
@@ -435,14 +443,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
435
443
|
locale?: string | undefined;
|
|
436
444
|
verified?: boolean | undefined;
|
|
437
445
|
email?: string | null | undefined;
|
|
438
|
-
flags?: import("
|
|
439
|
-
premiumType?: import("
|
|
440
|
-
publicFlags?: import("
|
|
441
|
-
avatarDecorationData?: import("
|
|
442
|
-
collectibles?: import("
|
|
443
|
-
primaryGuild?: import("
|
|
446
|
+
flags?: import("..").UserFlags | undefined;
|
|
447
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
448
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
449
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
450
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
451
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
444
452
|
} | undefined;
|
|
445
|
-
targetType?: import("
|
|
453
|
+
targetType?: import("..").InviteTargetType | undefined;
|
|
446
454
|
targetUser?: {
|
|
447
455
|
id: string;
|
|
448
456
|
username: string;
|
|
@@ -457,12 +465,12 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
457
465
|
locale?: string | undefined;
|
|
458
466
|
verified?: boolean | undefined;
|
|
459
467
|
email?: string | null | undefined;
|
|
460
|
-
flags?: import("
|
|
461
|
-
premiumType?: import("
|
|
462
|
-
publicFlags?: import("
|
|
463
|
-
avatarDecorationData?: import("
|
|
464
|
-
collectibles?: import("
|
|
465
|
-
primaryGuild?: import("
|
|
468
|
+
flags?: import("..").UserFlags | undefined;
|
|
469
|
+
premiumType?: import("..").UserPremiumType | undefined;
|
|
470
|
+
publicFlags?: import("..").UserFlags | undefined;
|
|
471
|
+
avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
|
|
472
|
+
collectibles?: import("..").APICollectibles | null | undefined;
|
|
473
|
+
primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
|
|
466
474
|
} | undefined;
|
|
467
475
|
targetApplication?: {
|
|
468
476
|
id?: string | undefined;
|
|
@@ -472,26 +480,26 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
472
480
|
rpcOrigins?: string[] | undefined;
|
|
473
481
|
botPublic?: boolean | undefined;
|
|
474
482
|
botRequireCodeGrant?: boolean | undefined;
|
|
475
|
-
bot?: import("
|
|
483
|
+
bot?: import("..").APIUser | undefined;
|
|
476
484
|
termsOfServiceUrl?: string | undefined;
|
|
477
485
|
privacyPolicyUrl?: string | undefined;
|
|
478
|
-
owner?: import("
|
|
486
|
+
owner?: import("..").APIUser | undefined;
|
|
479
487
|
verifyKey?: string | undefined;
|
|
480
|
-
team?: import("
|
|
488
|
+
team?: import("..").APITeam | null | undefined;
|
|
481
489
|
guildId?: string | undefined;
|
|
482
|
-
guild?: import("
|
|
490
|
+
guild?: import("..").APIPartialGuild | undefined;
|
|
483
491
|
primarySkuId?: string | undefined;
|
|
484
492
|
slug?: string | undefined;
|
|
485
493
|
coverImage?: string | undefined;
|
|
486
|
-
flags?: import("
|
|
494
|
+
flags?: import("..").ApplicationFlags | undefined;
|
|
487
495
|
approximateGuildCount?: number | undefined;
|
|
488
496
|
approximateUserInstallCount?: number | undefined;
|
|
489
497
|
redirectUris?: string[] | undefined;
|
|
490
498
|
interactionsEndpointUrl?: string | null | undefined;
|
|
491
499
|
roleConnectionsVerificationUrl?: string | null | undefined;
|
|
492
500
|
tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
|
|
493
|
-
installParams?: import("
|
|
494
|
-
integrationTypesConfig?: import("
|
|
501
|
+
installParams?: import("..").APIApplicationInstallParams | undefined;
|
|
502
|
+
integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
|
|
495
503
|
customInstallUrl?: string | undefined;
|
|
496
504
|
} | undefined;
|
|
497
505
|
approximatePresenceCount?: number | undefined;
|
|
@@ -507,14 +515,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
507
515
|
description?: string | null | undefined;
|
|
508
516
|
scheduledStartTime: string;
|
|
509
517
|
scheduledEndTime: string | null;
|
|
510
|
-
privacyLevel: import("
|
|
511
|
-
status: import("
|
|
512
|
-
entityType: import("
|
|
518
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
519
|
+
status: import("..").GuildScheduledEventStatus;
|
|
520
|
+
entityType: import("..").GuildScheduledEventEntityType.StageInstance;
|
|
513
521
|
entityId: string | null;
|
|
514
|
-
creator?: import("
|
|
522
|
+
creator?: import("..").APIUser | undefined;
|
|
515
523
|
userCount?: number | undefined;
|
|
516
524
|
image?: string | null | undefined;
|
|
517
|
-
recurrenceRule: import("
|
|
525
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
518
526
|
} | {
|
|
519
527
|
channelId: string;
|
|
520
528
|
entityMetadata: null;
|
|
@@ -525,14 +533,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
525
533
|
description?: string | null | undefined;
|
|
526
534
|
scheduledStartTime: string;
|
|
527
535
|
scheduledEndTime: string | null;
|
|
528
|
-
privacyLevel: import("
|
|
529
|
-
status: import("
|
|
530
|
-
entityType: import("
|
|
536
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
537
|
+
status: import("..").GuildScheduledEventStatus;
|
|
538
|
+
entityType: import("..").GuildScheduledEventEntityType.Voice;
|
|
531
539
|
entityId: string | null;
|
|
532
|
-
creator?: import("
|
|
540
|
+
creator?: import("..").APIUser | undefined;
|
|
533
541
|
userCount?: number | undefined;
|
|
534
542
|
image?: string | null | undefined;
|
|
535
|
-
recurrenceRule: import("
|
|
543
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
536
544
|
} | {
|
|
537
545
|
channelId: null;
|
|
538
546
|
entityMetadata: {
|
|
@@ -545,16 +553,16 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
545
553
|
description?: string | null | undefined;
|
|
546
554
|
scheduledStartTime: string;
|
|
547
555
|
scheduledEndTime: string | null;
|
|
548
|
-
privacyLevel: import("
|
|
549
|
-
status: import("
|
|
550
|
-
entityType: import("
|
|
556
|
+
privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
|
|
557
|
+
status: import("..").GuildScheduledEventStatus;
|
|
558
|
+
entityType: import("..").GuildScheduledEventEntityType.External;
|
|
551
559
|
entityId: string | null;
|
|
552
|
-
creator?: import("
|
|
560
|
+
creator?: import("..").APIUser | undefined;
|
|
553
561
|
userCount?: number | undefined;
|
|
554
562
|
image?: string | null | undefined;
|
|
555
|
-
recurrenceRule: import("
|
|
563
|
+
recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
|
|
556
564
|
} | undefined;
|
|
557
|
-
type: import("
|
|
565
|
+
type: import("..").InviteType;
|
|
558
566
|
}>;
|
|
559
567
|
};
|
|
560
568
|
permissionOverwrites: {
|
|
@@ -567,21 +575,21 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
567
575
|
rolePermissions(role: GuildRole, checkAdmin?: boolean): Promise<import("./extra/Permissions").PermissionsBitField>;
|
|
568
576
|
overwritesFor(member: GuildMember): Promise<{
|
|
569
577
|
everyone: {
|
|
570
|
-
type: import("
|
|
578
|
+
type: import("..").OverwriteType;
|
|
571
579
|
id: string;
|
|
572
580
|
deny: import("./extra/Permissions").PermissionsBitField;
|
|
573
581
|
allow: import("./extra/Permissions").PermissionsBitField;
|
|
574
582
|
guildId: string;
|
|
575
583
|
} | undefined;
|
|
576
584
|
roles: {
|
|
577
|
-
type: import("
|
|
585
|
+
type: import("..").OverwriteType;
|
|
578
586
|
id: string;
|
|
579
587
|
deny: import("./extra/Permissions").PermissionsBitField;
|
|
580
588
|
allow: import("./extra/Permissions").PermissionsBitField;
|
|
581
589
|
guildId: string;
|
|
582
590
|
}[];
|
|
583
591
|
member: {
|
|
584
|
-
type: import("
|
|
592
|
+
type: import("..").OverwriteType;
|
|
585
593
|
id: string;
|
|
586
594
|
deny: import("./extra/Permissions").PermissionsBitField;
|
|
587
595
|
allow: import("./extra/Permissions").PermissionsBitField;
|
|
@@ -590,7 +598,7 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
|
|
|
590
598
|
}>;
|
|
591
599
|
guild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'>>;
|
|
592
600
|
guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
|
|
593
|
-
get url(): string
|
|
601
|
+
get url(): `https://discord.com/channels/${string}/${string}`;
|
|
594
602
|
setPosition(position: number, reason?: string): Promise<this>;
|
|
595
603
|
setName(name: string, reason?: string): Promise<this>;
|
|
596
604
|
setParent(parent_id: string | null, reason?: string): Promise<this>;
|
|
@@ -608,13 +616,13 @@ export declare class MessagesMethods extends DiscordBase {
|
|
|
608
616
|
delete: (messageId: string, reason?: string) => Promise<void>;
|
|
609
617
|
fetch: (messageId: string, force?: boolean) => Promise<MessageStructure>;
|
|
610
618
|
purge: (messages: string[], reason?: string) => Promise<void | undefined>;
|
|
611
|
-
list: (fetchOptions
|
|
619
|
+
list: (fetchOptions?: RESTGetAPIChannelMessagesQuery) => Promise<MessageStructure[]>;
|
|
612
620
|
};
|
|
613
621
|
pins: {
|
|
614
622
|
fetch: (query?: RESTGetAPIChannelMessagesPinsQuery) => Promise<{
|
|
615
623
|
hasMore: boolean;
|
|
616
624
|
items: {
|
|
617
|
-
pinnedAt:
|
|
625
|
+
pinnedAt: number;
|
|
618
626
|
message: MessageStructure;
|
|
619
627
|
}[];
|
|
620
628
|
}>;
|
|
@@ -636,7 +644,7 @@ export declare class MessagesMethods extends DiscordBase {
|
|
|
636
644
|
delete: (messageId: string, reason?: string) => Promise<void>;
|
|
637
645
|
fetch: (messageId: string, force?: boolean) => Promise<MessageStructure>;
|
|
638
646
|
purge: (messages: string[], reason?: string) => Promise<void | undefined>;
|
|
639
|
-
list: (fetchOptions
|
|
647
|
+
list: (fetchOptions?: RESTGetAPIChannelMessagesQuery) => Promise<MessageStructure[]>;
|
|
640
648
|
};
|
|
641
649
|
static reactions(ctx: MethodContext<{
|
|
642
650
|
channelId: string;
|
|
@@ -652,7 +660,7 @@ export declare class MessagesMethods extends DiscordBase {
|
|
|
652
660
|
fetch: (query?: RESTGetAPIChannelMessagesPinsQuery) => Promise<{
|
|
653
661
|
hasMore: boolean;
|
|
654
662
|
items: {
|
|
655
|
-
pinnedAt:
|
|
663
|
+
pinnedAt: number;
|
|
656
664
|
message: MessageStructure;
|
|
657
665
|
}[];
|
|
658
666
|
}>;
|
|
@@ -697,7 +705,7 @@ export declare class VoiceChannelMethods extends DiscordBase {
|
|
|
697
705
|
setVideoQuality(quality: keyof typeof VideoQualityMode, reason?: string): Promise<this>;
|
|
698
706
|
setVoiceStatus(status?: string | null): Promise<undefined>;
|
|
699
707
|
states(): ReturnCache<VoiceStateStructure[]>;
|
|
700
|
-
members(force?: boolean): Promise<
|
|
708
|
+
members(force?: boolean): Promise<GuildMemberStructure[]>;
|
|
701
709
|
}
|
|
702
710
|
export declare class WebhookGuildMethods extends DiscordBase {
|
|
703
711
|
webhooks: {
|
|
@@ -748,12 +756,12 @@ export interface MediaChannel extends ObjectToLower<Omit<APIGuildMediaChannel, '
|
|
|
748
756
|
export declare class MediaChannel extends BaseGuildChannel {
|
|
749
757
|
type: ChannelType.GuildMedia;
|
|
750
758
|
}
|
|
751
|
-
export interface ForumChannel extends ObjectToLower<Omit<APIGuildForumChannel, 'permission_overwrites' | 'guild_id'>>, Omit<ThreadOnlyMethods, 'type' | 'edit'>, WebhookChannelMethods {
|
|
759
|
+
export interface ForumChannel extends ObjectToLower<Omit<APIGuildForumChannel, 'permission_overwrites' | 'guild_id'>>, Omit<ThreadOnlyMethods, 'type' | 'edit' | 'delete'>, WebhookChannelMethods {
|
|
752
760
|
}
|
|
753
761
|
export declare class ForumChannel extends BaseGuildChannel {
|
|
754
762
|
type: ChannelType.GuildForum;
|
|
755
763
|
}
|
|
756
|
-
export interface ThreadChannel extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>, Omit<TextBaseGuildChannel, 'edit' | 'parentId'> {
|
|
764
|
+
export interface ThreadChannel extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>, Omit<TextBaseGuildChannel, 'edit' | 'parentId' | 'delete'> {
|
|
757
765
|
parentId: string;
|
|
758
766
|
}
|
|
759
767
|
export declare class ThreadChannel extends BaseChannel<ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread> {
|
|
@@ -783,7 +791,10 @@ export interface NewsChannel extends ObjectToLower<Omit<APINewsChannel, 'permiss
|
|
|
783
791
|
}
|
|
784
792
|
export declare class NewsChannel extends BaseGuildChannel {
|
|
785
793
|
type: ChannelType.GuildAnnouncement;
|
|
786
|
-
addFollower(webhookChannelId: string, reason?: string): Promise<import("
|
|
794
|
+
addFollower(webhookChannelId: string, reason?: string): Promise<import("..").APIFollowedChannel>;
|
|
795
|
+
}
|
|
796
|
+
export interface DirectoryChannel extends ObjectToLower<Omit<APIGuildChannel<ChannelType.GuildDirectory>, 'permission_overwrites' | 'guild_id'>> {
|
|
797
|
+
guildId: string;
|
|
787
798
|
}
|
|
788
799
|
export declare class DirectoryChannel extends BaseChannel<ChannelType.GuildDirectory> {
|
|
789
800
|
}
|
|
@@ -791,6 +802,9 @@ export type AllGuildChannels = TextGuildChannelStructure | VoiceChannelStructure
|
|
|
791
802
|
export type AllTextableChannels = TextGuildChannelStructure | VoiceChannelStructure | DMChannelStructure | NewsChannelStructure | ThreadChannelStructure;
|
|
792
803
|
export type AllGuildTextableChannels = TextGuildChannelStructure | VoiceChannelStructure | NewsChannelStructure | ThreadChannelStructure;
|
|
793
804
|
export type AllGuildVoiceChannels = VoiceChannelStructure | StageChannelStructure;
|
|
805
|
+
export type AllNamedChannels = AllGuildChannels | BaseGuildChannelStructure | (BaseChannelStructure & {
|
|
806
|
+
name: string;
|
|
807
|
+
});
|
|
794
808
|
export type AllChannels = BaseChannelStructure | BaseGuildChannelStructure | TextGuildChannelStructure | DMChannelStructure | VoiceChannelStructure | MediaChannelStructure | ForumChannelStructure | ThreadChannelStructure | CategoryChannelStructure | NewsChannelStructure | DirectoryChannelStructure | StageChannelStructure;
|
|
795
809
|
export type GuildChannelTypes = ChannelType.GuildAnnouncement | ChannelType.GuildVoice | ChannelType.GuildText | ChannelType.GuildStageVoice | ChannelType.GuildForum | ChannelType.GuildMedia | ChannelType.GuildCategory | ChannelType.AnnouncementThread | ChannelType.PrivateThread | ChannelType.PublicThread;
|
|
796
810
|
export {};
|