oceanic.js 1.10.1-dev.97cef9c → 1.10.1-dev.9b37972
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +5 -5
- package/esm.mjs +2 -0
- package/package.json +5 -5
- package/dist/lib/Client.d.ts +0 -91
- package/dist/lib/Client.js +0 -254
- package/dist/lib/Constants.d.ts +0 -1121
- package/dist/lib/Constants.js +0 -1401
- package/dist/lib/gateway/Shard.d.ts +0 -77
- package/dist/lib/gateway/Shard.js +0 -1582
- package/dist/lib/gateway/ShardManager.d.ts +0 -26
- package/dist/lib/gateway/ShardManager.js +0 -304
- package/dist/lib/index.d.ts +0 -83
- package/dist/lib/index.js +0 -166
- package/dist/lib/rest/Bucket.d.ts +0 -33
- package/dist/lib/rest/Bucket.js +0 -78
- package/dist/lib/rest/DiscordHTTPError.d.ts +0 -16
- package/dist/lib/rest/DiscordHTTPError.js +0 -65
- package/dist/lib/rest/DiscordRESTError.d.ts +0 -19
- package/dist/lib/rest/DiscordRESTError.js +0 -89
- package/dist/lib/rest/OAuthHelper.d.ts +0 -60
- package/dist/lib/rest/OAuthHelper.js +0 -180
- package/dist/lib/rest/RESTManager.d.ts +0 -42
- package/dist/lib/rest/RESTManager.js +0 -82
- package/dist/lib/rest/RequestHandler.d.ts +0 -28
- package/dist/lib/rest/RequestHandler.js +0 -313
- package/dist/lib/rest/SequentialBucket.d.ts +0 -25
- package/dist/lib/rest/SequentialBucket.js +0 -76
- package/dist/lib/routes/Applications.d.ts +0 -171
- package/dist/lib/routes/Applications.js +0 -447
- package/dist/lib/routes/Channels.d.ts +0 -391
- package/dist/lib/routes/Channels.js +0 -1107
- package/dist/lib/routes/Guilds.d.ts +0 -606
- package/dist/lib/routes/Guilds.js +0 -1669
- package/dist/lib/routes/Interactions.d.ts +0 -74
- package/dist/lib/routes/Interactions.js +0 -141
- package/dist/lib/routes/Miscellaneous.d.ts +0 -25
- package/dist/lib/routes/Miscellaneous.js +0 -54
- package/dist/lib/routes/OAuth.d.ts +0 -105
- package/dist/lib/routes/OAuth.js +0 -309
- package/dist/lib/routes/Users.d.ts +0 -32
- package/dist/lib/routes/Users.js +0 -59
- package/dist/lib/routes/Webhooks.d.ts +0 -128
- package/dist/lib/routes/Webhooks.js +0 -264
- package/dist/lib/structures/AnnouncementChannel.d.ts +0 -36
- package/dist/lib/structures/AnnouncementChannel.js +0 -47
- package/dist/lib/structures/AnnouncementThreadChannel.d.ts +0 -18
- package/dist/lib/structures/AnnouncementThreadChannel.js +0 -27
- package/dist/lib/structures/Application.d.ts +0 -68
- package/dist/lib/structures/Application.js +0 -178
- package/dist/lib/structures/ApplicationCommand.d.ts +0 -74
- package/dist/lib/structures/ApplicationCommand.js +0 -141
- package/dist/lib/structures/Attachment.d.ts +0 -34
- package/dist/lib/structures/Attachment.js +0 -64
- package/dist/lib/structures/AuditLogEntry.d.ts +0 -25
- package/dist/lib/structures/AuditLogEntry.js +0 -53
- package/dist/lib/structures/AutoModerationRule.d.ts +0 -49
- package/dist/lib/structures/AutoModerationRule.js +0 -139
- package/dist/lib/structures/AutocompleteInteraction.d.ts +0 -62
- package/dist/lib/structures/AutocompleteInteraction.js +0 -115
- package/dist/lib/structures/Base.d.ts +0 -20
- package/dist/lib/structures/Base.js +0 -58
- package/dist/lib/structures/BaseEntitlement.d.ts +0 -19
- package/dist/lib/structures/BaseEntitlement.js +0 -44
- package/dist/lib/structures/CategoryChannel.d.ts +0 -41
- package/dist/lib/structures/CategoryChannel.js +0 -105
- package/dist/lib/structures/Channel.d.ts +0 -20
- package/dist/lib/structures/Channel.js +0 -91
- package/dist/lib/structures/ClientApplication.d.ts +0 -153
- package/dist/lib/structures/ClientApplication.js +0 -220
- package/dist/lib/structures/CommandInteraction.d.ts +0 -127
- package/dist/lib/structures/CommandInteraction.js +0 -297
- package/dist/lib/structures/ComponentInteraction.d.ts +0 -137
- package/dist/lib/structures/ComponentInteraction.js +0 -311
- package/dist/lib/structures/Entitlement.d.ts +0 -12
- package/dist/lib/structures/Entitlement.js +0 -26
- package/dist/lib/structures/ExtendedUser.d.ts +0 -26
- package/dist/lib/structures/ExtendedUser.js +0 -57
- package/dist/lib/structures/ForumChannel.d.ts +0 -11
- package/dist/lib/structures/ForumChannel.js +0 -19
- package/dist/lib/structures/GroupChannel.d.ts +0 -62
- package/dist/lib/structures/GroupChannel.js +0 -133
- package/dist/lib/structures/Guild.d.ts +0 -654
- package/dist/lib/structures/Guild.js +0 -1319
- package/dist/lib/structures/GuildChannel.d.ts +0 -34
- package/dist/lib/structures/GuildChannel.js +0 -75
- package/dist/lib/structures/GuildPreview.d.ts +0 -50
- package/dist/lib/structures/GuildPreview.js +0 -119
- package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -60
- package/dist/lib/structures/GuildScheduledEvent.js +0 -154
- package/dist/lib/structures/GuildTemplate.d.ts +0 -55
- package/dist/lib/structures/GuildTemplate.js +0 -126
- package/dist/lib/structures/Integration.d.ts +0 -54
- package/dist/lib/structures/Integration.js +0 -156
- package/dist/lib/structures/Interaction.d.ts +0 -40
- package/dist/lib/structures/Interaction.js +0 -91
- package/dist/lib/structures/InteractionResolvedChannel.d.ts +0 -28
- package/dist/lib/structures/InteractionResolvedChannel.js +0 -45
- package/dist/lib/structures/Invite.d.ts +0 -64
- package/dist/lib/structures/Invite.js +0 -193
- package/dist/lib/structures/InviteGuild.d.ts +0 -52
- package/dist/lib/structures/InviteGuild.js +0 -88
- package/dist/lib/structures/MediaChannel.d.ts +0 -11
- package/dist/lib/structures/MediaChannel.js +0 -19
- package/dist/lib/structures/Member.d.ts +0 -122
- package/dist/lib/structures/Member.js +0 -255
- package/dist/lib/structures/Message.d.ts +0 -183
- package/dist/lib/structures/Message.js +0 -455
- package/dist/lib/structures/ModalSubmitInteraction.d.ts +0 -128
- package/dist/lib/structures/ModalSubmitInteraction.js +0 -240
- package/dist/lib/structures/OAuthApplication.d.ts +0 -79
- package/dist/lib/structures/OAuthApplication.js +0 -210
- package/dist/lib/structures/OAuthGuild.d.ts +0 -35
- package/dist/lib/structures/OAuthGuild.js +0 -61
- package/dist/lib/structures/PartialApplication.d.ts +0 -30
- package/dist/lib/structures/PartialApplication.js +0 -67
- package/dist/lib/structures/Permission.d.ts +0 -21
- package/dist/lib/structures/Permission.js +0 -68
- package/dist/lib/structures/PermissionOverwrite.d.ts +0 -26
- package/dist/lib/structures/PermissionOverwrite.js +0 -49
- package/dist/lib/structures/PingInteraction.d.ts +0 -16
- package/dist/lib/structures/PingInteraction.js +0 -26
- package/dist/lib/structures/PrivateChannel.d.ts +0 -90
- package/dist/lib/structures/PrivateChannel.js +0 -131
- package/dist/lib/structures/PrivateThreadChannel.d.ts +0 -18
- package/dist/lib/structures/PrivateThreadChannel.js +0 -27
- package/dist/lib/structures/PublicThreadChannel.d.ts +0 -21
- package/dist/lib/structures/PublicThreadChannel.js +0 -37
- package/dist/lib/structures/Role.d.ts +0 -50
- package/dist/lib/structures/Role.js +0 -131
- package/dist/lib/structures/SKU.d.ts +0 -32
- package/dist/lib/structures/SKU.js +0 -53
- package/dist/lib/structures/StageChannel.d.ts +0 -33
- package/dist/lib/structures/StageChannel.js +0 -44
- package/dist/lib/structures/StageInstance.d.ts +0 -36
- package/dist/lib/structures/StageInstance.js +0 -94
- package/dist/lib/structures/Team.d.ts +0 -22
- package/dist/lib/structures/Team.js +0 -67
- package/dist/lib/structures/TestEntitlement.d.ts +0 -10
- package/dist/lib/structures/TestEntitlement.js +0 -21
- package/dist/lib/structures/TextChannel.d.ts +0 -34
- package/dist/lib/structures/TextChannel.js +0 -46
- package/dist/lib/structures/TextableChannel.d.ts +0 -158
- package/dist/lib/structures/TextableChannel.js +0 -276
- package/dist/lib/structures/TextableVoiceChannel.d.ts +0 -39
- package/dist/lib/structures/TextableVoiceChannel.js +0 -81
- package/dist/lib/structures/ThreadChannel.d.ts +0 -159
- package/dist/lib/structures/ThreadChannel.js +0 -295
- package/dist/lib/structures/ThreadOnlyChannel.d.ts +0 -99
- package/dist/lib/structures/ThreadOnlyChannel.js +0 -233
- package/dist/lib/structures/ThreadableChannel.d.ts +0 -36
- package/dist/lib/structures/ThreadableChannel.js +0 -58
- package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
- package/dist/lib/structures/UnavailableGuild.js +0 -21
- package/dist/lib/structures/User.d.ts +0 -82
- package/dist/lib/structures/User.js +0 -168
- package/dist/lib/structures/VoiceChannel.d.ts +0 -20
- package/dist/lib/structures/VoiceChannel.js +0 -35
- package/dist/lib/structures/VoiceState.d.ts +0 -51
- package/dist/lib/structures/VoiceState.js +0 -140
- package/dist/lib/structures/Webhook.d.ts +0 -129
- package/dist/lib/structures/Webhook.js +0 -206
- package/dist/lib/types/applications.d.ts +0 -448
- package/dist/lib/types/audit-log.d.ts +0 -121
- package/dist/lib/types/auto-moderation.d.ts +0 -99
- package/dist/lib/types/channels.d.ts +0 -1150
- package/dist/lib/types/client.d.ts +0 -228
- package/dist/lib/types/events.d.ts +0 -260
- package/dist/lib/types/gateway-raw.d.ts +0 -567
- package/dist/lib/types/gateway.d.ts +0 -338
- package/dist/lib/types/guild-template.d.ts +0 -33
- package/dist/lib/types/guilds.d.ts +0 -854
- package/dist/lib/types/index.d.ts +0 -18
- package/dist/lib/types/interactions.d.ts +0 -376
- package/dist/lib/types/json.d.ts +0 -709
- package/dist/lib/types/misc.d.ts +0 -13
- package/dist/lib/types/oauth.d.ts +0 -201
- package/dist/lib/types/request-handler.d.ts +0 -52
- package/dist/lib/types/scheduled-events.d.ts +0 -88
- package/dist/lib/types/shared.d.ts +0 -9
- package/dist/lib/types/users.d.ts +0 -45
- package/dist/lib/types/voice.d.ts +0 -45
- package/dist/lib/types/webhooks.d.ts +0 -73
- package/dist/lib/util/Collection.d.ts +0 -47
- package/dist/lib/util/Collection.js +0 -78
- package/dist/lib/util/Errors.d.ts +0 -29
- package/dist/lib/util/Errors.js +0 -56
- package/dist/lib/util/Routes.d.ts +0 -124
- package/dist/lib/util/Routes.js +0 -243
- package/dist/lib/util/SimpleCollection.d.ts +0 -12
- package/dist/lib/util/SimpleCollection.js +0 -81
- package/dist/lib/util/TypedCollection.d.ts +0 -24
- package/dist/lib/util/TypedCollection.js +0 -76
- package/dist/lib/util/TypedEmitter.d.ts +0 -19
- package/dist/lib/util/TypedEmitter.js +0 -19
- package/dist/lib/util/Util.d.ts +0 -52
- package/dist/lib/util/Util.js +0 -469
- package/dist/lib/util/interactions/InteractionOptionsWrapper.d.ts +0 -170
- package/dist/lib/util/interactions/InteractionOptionsWrapper.js +0 -213
- package/dist/lib/util/interactions/MessageInteractionResponse.d.ts +0 -24
- package/dist/lib/util/interactions/MessageInteractionResponse.js +0 -28
- package/dist/lib/util/interactions/ModalSubmitInteractionComponentsWrapper.d.ts +0 -24
- package/dist/lib/util/interactions/ModalSubmitInteractionComponentsWrapper.js +0 -34
- package/dist/lib/util/interactions/SelectMenuValuesWrapper.d.ts +0 -60
- package/dist/lib/util/interactions/SelectMenuValuesWrapper.js +0 -124
package/dist/lib/types/json.d.ts
DELETED
|
@@ -1,709 +0,0 @@
|
|
|
1
|
-
/** @module Types/JSON */
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
3
|
-
import type { InstallParams } from "./oauth";
|
|
4
|
-
import type { ApplicationCommandOptions, IntegrationTypesConfig, LocaleMap, TeamMember } from "./applications";
|
|
5
|
-
import type {
|
|
6
|
-
ApplicationCommandInteractionData,
|
|
7
|
-
AuthorizingIntegrationOwners,
|
|
8
|
-
AutocompleteInteractionData,
|
|
9
|
-
MessageComponentButtonInteractionData,
|
|
10
|
-
MessageComponentSelectMenuInteractionData,
|
|
11
|
-
ModalSubmitInteractionData
|
|
12
|
-
} from "./interactions";
|
|
13
|
-
import type { AutoModerationAction, TriggerMetadata } from "./auto-moderation";
|
|
14
|
-
import type {
|
|
15
|
-
GuildEmoji,
|
|
16
|
-
IntegrationAccount,
|
|
17
|
-
RawGuild,
|
|
18
|
-
RoleTags,
|
|
19
|
-
RawSticker,
|
|
20
|
-
WelcomeScreen,
|
|
21
|
-
Sticker,
|
|
22
|
-
Presence,
|
|
23
|
-
IncidentActions
|
|
24
|
-
} from "./guilds";
|
|
25
|
-
import type {
|
|
26
|
-
ChannelMention,
|
|
27
|
-
MessageActivity,
|
|
28
|
-
MessageReference,
|
|
29
|
-
RawChannel,
|
|
30
|
-
StickerItem,
|
|
31
|
-
MessageReaction,
|
|
32
|
-
ThreadMetadata,
|
|
33
|
-
PrivateThreadMetadata,
|
|
34
|
-
ForumTag,
|
|
35
|
-
ForumEmoji,
|
|
36
|
-
MessageActionRow,
|
|
37
|
-
Embed,
|
|
38
|
-
GuildChannels,
|
|
39
|
-
TextableGuildChannels,
|
|
40
|
-
ThreadChannels,
|
|
41
|
-
VoiceChannels,
|
|
42
|
-
ThreadOnlyChannels
|
|
43
|
-
} from "./channels";
|
|
44
|
-
import type { ScheduledEventEntityMetadata } from "./scheduled-events";
|
|
45
|
-
import type { Uncached } from "./shared";
|
|
46
|
-
import type {
|
|
47
|
-
ApplicationCommandTypes,
|
|
48
|
-
AutoModerationEventTypes,
|
|
49
|
-
AutoModerationTriggerTypes,
|
|
50
|
-
ChannelTypes,
|
|
51
|
-
DefaultMessageNotificationLevels,
|
|
52
|
-
ExplicitContentFilterLevels,
|
|
53
|
-
GuildFeature,
|
|
54
|
-
GuildNSFWLevels,
|
|
55
|
-
IntegrationExpireBehaviors,
|
|
56
|
-
IntegrationType,
|
|
57
|
-
InteractionTypes,
|
|
58
|
-
InviteTargetTypes,
|
|
59
|
-
MessageTypes,
|
|
60
|
-
MFALevels,
|
|
61
|
-
OverwriteTypes,
|
|
62
|
-
PremiumTiers,
|
|
63
|
-
RESTMethod,
|
|
64
|
-
GuildScheduledEventEntityTypes,
|
|
65
|
-
GuildScheduledEventPrivacyLevels,
|
|
66
|
-
GuildScheduledEventStatuses,
|
|
67
|
-
ThreadAutoArchiveDuration,
|
|
68
|
-
VerificationLevels,
|
|
69
|
-
VideoQualityModes,
|
|
70
|
-
WebhookTypes,
|
|
71
|
-
SortOrderTypes,
|
|
72
|
-
StageInstancePrivacyLevels,
|
|
73
|
-
ForumLayoutTypes,
|
|
74
|
-
EntitlementTypes,
|
|
75
|
-
ApplicationIntegrationTypes,
|
|
76
|
-
InteractionContextTypes
|
|
77
|
-
} from "../Constants";
|
|
78
|
-
|
|
79
|
-
export interface JSONAnnouncementChannel extends JSONThreadableChannel {
|
|
80
|
-
rateLimitPerUser: 0;
|
|
81
|
-
type: ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
82
|
-
}
|
|
83
|
-
export interface JSONAnnouncementThreadChannel extends JSONThreadChannel {
|
|
84
|
-
threadMetadata: ThreadMetadata;
|
|
85
|
-
type: ChannelTypes.ANNOUNCEMENT_THREAD;
|
|
86
|
-
}
|
|
87
|
-
export interface JSONApplication extends JSONClientApplication {
|
|
88
|
-
approximateGuildCount: number;
|
|
89
|
-
coverImage: string | null;
|
|
90
|
-
customInstallURL?: string;
|
|
91
|
-
description: string;
|
|
92
|
-
guild: JSONOAuthGuild | null;
|
|
93
|
-
guildID: string | null;
|
|
94
|
-
icon: string | null;
|
|
95
|
-
installParams?: InstallParams;
|
|
96
|
-
integrationTypes: Array<ApplicationIntegrationTypes>;
|
|
97
|
-
integrationTypesConfig?: IntegrationTypesConfig;
|
|
98
|
-
interactionsEndpointURL: string | null;
|
|
99
|
-
name: string;
|
|
100
|
-
primarySKUID?: string;
|
|
101
|
-
privacyPolicyURL?: string;
|
|
102
|
-
roleConnectionsVerificationURL: string | null;
|
|
103
|
-
rpcOrigins: Array<string>;
|
|
104
|
-
slug?: string;
|
|
105
|
-
tags?: Array<string>;
|
|
106
|
-
termsOfServiceURL?: string;
|
|
107
|
-
type: number | null;
|
|
108
|
-
verifyKey: string;
|
|
109
|
-
}
|
|
110
|
-
export interface JSONApplicationCommand extends JSONBase {
|
|
111
|
-
applicationID: string;
|
|
112
|
-
contexts: Array<InteractionContextTypes>;
|
|
113
|
-
defaultMemberPermissions?: JSONPermission;
|
|
114
|
-
description: string;
|
|
115
|
-
descriptionLocalizations?: LocaleMap | null;
|
|
116
|
-
dmPermission?: boolean;
|
|
117
|
-
guildID?: string;
|
|
118
|
-
integrationTypes: Array<ApplicationIntegrationTypes>;
|
|
119
|
-
name: string;
|
|
120
|
-
nameLocalizations?: LocaleMap | null;
|
|
121
|
-
nsfw?: boolean;
|
|
122
|
-
options?: Array<ApplicationCommandOptions>;
|
|
123
|
-
type: ApplicationCommandTypes;
|
|
124
|
-
version: string;
|
|
125
|
-
}
|
|
126
|
-
export interface JSONAttachment extends JSONBase {
|
|
127
|
-
contentType?: string;
|
|
128
|
-
description?: string;
|
|
129
|
-
ephemeral?: boolean;
|
|
130
|
-
filename: string;
|
|
131
|
-
flags: number;
|
|
132
|
-
height?: number;
|
|
133
|
-
proxyURL: string;
|
|
134
|
-
size: number;
|
|
135
|
-
url: string;
|
|
136
|
-
width?: number;
|
|
137
|
-
}
|
|
138
|
-
export interface JSONAutocompleteInteraction extends JSONInteraction {
|
|
139
|
-
appPermissions: JSONPermission;
|
|
140
|
-
authorizingIntegrationOwners: AuthorizingIntegrationOwners;
|
|
141
|
-
channelID: string;
|
|
142
|
-
context?: InteractionContextTypes;
|
|
143
|
-
data: AutocompleteInteractionData;
|
|
144
|
-
guildID?: string;
|
|
145
|
-
guildLocale?: string;
|
|
146
|
-
locale: string;
|
|
147
|
-
member?: JSONMember;
|
|
148
|
-
type: InteractionTypes.APPLICATION_COMMAND_AUTOCOMPLETE;
|
|
149
|
-
user: JSONUser;
|
|
150
|
-
}
|
|
151
|
-
export interface JSONAutoModerationRule extends JSONBase {
|
|
152
|
-
actions: Array<AutoModerationAction>;
|
|
153
|
-
creatorID: string;
|
|
154
|
-
enabled: boolean;
|
|
155
|
-
eventType: AutoModerationEventTypes;
|
|
156
|
-
exemptChannels: Array<string>;
|
|
157
|
-
exemptRoles: Array<string>;
|
|
158
|
-
guildID: string;
|
|
159
|
-
name: string;
|
|
160
|
-
triggerMetadata: TriggerMetadata;
|
|
161
|
-
triggerType: AutoModerationTriggerTypes;
|
|
162
|
-
}
|
|
163
|
-
export interface JSONBase {
|
|
164
|
-
createdAt: number;
|
|
165
|
-
id: string;
|
|
166
|
-
}
|
|
167
|
-
export interface JSONBaseEntitlement extends JSONBase {
|
|
168
|
-
applicationID: string;
|
|
169
|
-
consumed: boolean;
|
|
170
|
-
deleted: boolean;
|
|
171
|
-
giftCodeFlags: number;
|
|
172
|
-
guildID: string | null;
|
|
173
|
-
promotionID: string | null;
|
|
174
|
-
skuID: string;
|
|
175
|
-
type: EntitlementTypes;
|
|
176
|
-
userID: string | null;
|
|
177
|
-
}
|
|
178
|
-
export interface JSONCategoryChannel extends JSONGuildChannel {
|
|
179
|
-
channels: Array<string>;
|
|
180
|
-
permissionOverwrites: Array<JSONPermissionOverwrite>;
|
|
181
|
-
position: number;
|
|
182
|
-
type: ChannelTypes.GUILD_CATEGORY;
|
|
183
|
-
}
|
|
184
|
-
export interface JSONChannel extends JSONBase {
|
|
185
|
-
type: ChannelTypes;
|
|
186
|
-
}
|
|
187
|
-
export interface JSONClientApplication extends JSONBase {
|
|
188
|
-
flags: number;
|
|
189
|
-
}
|
|
190
|
-
export interface JSONClientUser extends JSONUser {
|
|
191
|
-
email: string | null;
|
|
192
|
-
flags: number;
|
|
193
|
-
locale: string;
|
|
194
|
-
mfaEnabled: boolean;
|
|
195
|
-
verified: boolean;
|
|
196
|
-
}
|
|
197
|
-
export interface JSONCommandInteraction extends JSONInteraction {
|
|
198
|
-
appPermissions: JSONPermission;
|
|
199
|
-
authorizingIntegrationOwners: AuthorizingIntegrationOwners;
|
|
200
|
-
channelID: string;
|
|
201
|
-
context?: InteractionContextTypes;
|
|
202
|
-
data: ApplicationCommandInteractionData;
|
|
203
|
-
guildID?: string;
|
|
204
|
-
guildLocale?: string;
|
|
205
|
-
locale: string;
|
|
206
|
-
member?: JSONMember;
|
|
207
|
-
type: InteractionTypes.APPLICATION_COMMAND;
|
|
208
|
-
user: JSONUser;
|
|
209
|
-
}
|
|
210
|
-
export interface JSONComponentInteraction extends JSONInteraction {
|
|
211
|
-
appPermissions: JSONPermission;
|
|
212
|
-
authorizingIntegrationOwners: AuthorizingIntegrationOwners;
|
|
213
|
-
channelID: string;
|
|
214
|
-
context?: InteractionContextTypes;
|
|
215
|
-
data: MessageComponentButtonInteractionData | MessageComponentSelectMenuInteractionData;
|
|
216
|
-
guildID?: string;
|
|
217
|
-
guildLocale?: string;
|
|
218
|
-
locale: string;
|
|
219
|
-
member?: JSONMember;
|
|
220
|
-
type: InteractionTypes.MESSAGE_COMPONENT;
|
|
221
|
-
user: JSONUser;
|
|
222
|
-
}
|
|
223
|
-
export interface JSONEntitlement extends JSONBaseEntitlement {
|
|
224
|
-
endsAt: number;
|
|
225
|
-
startsAt: number;
|
|
226
|
-
subscriptionID: string;
|
|
227
|
-
}
|
|
228
|
-
export interface JSONDiscordHTTPError {
|
|
229
|
-
message: string;
|
|
230
|
-
method: RESTMethod;
|
|
231
|
-
name: string;
|
|
232
|
-
resBody: Record<string, unknown> | null;
|
|
233
|
-
stack: string;
|
|
234
|
-
}
|
|
235
|
-
export interface JSONDiscordRESTError {
|
|
236
|
-
message: string;
|
|
237
|
-
method: RESTMethod;
|
|
238
|
-
name: string;
|
|
239
|
-
resBody: Record<string, unknown> | null;
|
|
240
|
-
stack: string;
|
|
241
|
-
}
|
|
242
|
-
export interface JSONExtendedUser extends JSONUser {
|
|
243
|
-
email: string | null;
|
|
244
|
-
flags: number;
|
|
245
|
-
locale?: string;
|
|
246
|
-
mfaEnabled: boolean;
|
|
247
|
-
verified: boolean;
|
|
248
|
-
}
|
|
249
|
-
export interface JSONForumChannel extends JSONThreadOnlyChannel {
|
|
250
|
-
type: ChannelTypes.GUILD_FORUM;
|
|
251
|
-
}
|
|
252
|
-
export interface JSONGroupChannel extends JSONChannel {
|
|
253
|
-
applicationID: string;
|
|
254
|
-
icon: string | null;
|
|
255
|
-
managed: boolean;
|
|
256
|
-
name: string | null;
|
|
257
|
-
nicks: Array<Record<"id" | "nick", string>>;
|
|
258
|
-
ownerID: string;
|
|
259
|
-
recipients: Array<JSONUser>;
|
|
260
|
-
type: ChannelTypes.GROUP_DM;
|
|
261
|
-
}
|
|
262
|
-
export interface JSONGuild extends JSONBase {
|
|
263
|
-
afkChannelID: string | null;
|
|
264
|
-
afkTimeout: number;
|
|
265
|
-
application?: string;
|
|
266
|
-
approximateMemberCount?: number;
|
|
267
|
-
approximatePresenceCount?: number;
|
|
268
|
-
autoModerationRules: Array<JSONAutoModerationRule>;
|
|
269
|
-
banner: string | null;
|
|
270
|
-
channels: Array<string>;
|
|
271
|
-
defaultMessageNotifications: DefaultMessageNotificationLevels;
|
|
272
|
-
description: string | null;
|
|
273
|
-
discoverySplash: string | null;
|
|
274
|
-
emojis: Array<GuildEmoji>;
|
|
275
|
-
explicitContentFilter: ExplicitContentFilterLevels;
|
|
276
|
-
features: Array<GuildFeature>;
|
|
277
|
-
icon: string | null;
|
|
278
|
-
incidentActions: IncidentActions | null;
|
|
279
|
-
joinedAt: number | null;
|
|
280
|
-
large: boolean;
|
|
281
|
-
maxMembers?: number;
|
|
282
|
-
maxPresences?: number;
|
|
283
|
-
maxStageVideoChannelUsers?: number;
|
|
284
|
-
maxVideoChannelUsers?: number;
|
|
285
|
-
memberCount: number;
|
|
286
|
-
members: Array<string>;
|
|
287
|
-
mfaLevel: MFALevels;
|
|
288
|
-
name: string;
|
|
289
|
-
nsfwLevel: GuildNSFWLevels;
|
|
290
|
-
ownerID: string | null;
|
|
291
|
-
preferredLocale: string;
|
|
292
|
-
premiumProgressBarEnabled: boolean;
|
|
293
|
-
premiumSubscriptionCount?: number;
|
|
294
|
-
premiumTier: PremiumTiers;
|
|
295
|
-
publicUpdatesChannelID: string | null;
|
|
296
|
-
region?: string | null;
|
|
297
|
-
roles: Array<JSONRole>;
|
|
298
|
-
rulesChannelID: string | null;
|
|
299
|
-
scheduledEvents: Array<JSONScheduledEvent>;
|
|
300
|
-
splash: string | null;
|
|
301
|
-
stageInstances: Array<JSONStageInstance>;
|
|
302
|
-
stickers?: Array<Sticker>;
|
|
303
|
-
systemChannelFlags: number;
|
|
304
|
-
systemChannelID: string | null;
|
|
305
|
-
threads: Array<string>;
|
|
306
|
-
unavailable: boolean;
|
|
307
|
-
vanityURLCode: string | null;
|
|
308
|
-
verificationLevel: VerificationLevels;
|
|
309
|
-
voiceStates: Array<JSONVoiceState>;
|
|
310
|
-
welcomeScreen?: WelcomeScreen;
|
|
311
|
-
widgetChannelID: string | null;
|
|
312
|
-
widgetEnabled?: boolean;
|
|
313
|
-
}
|
|
314
|
-
export interface JSONGuildChannel extends JSONChannel {
|
|
315
|
-
guildID: string;
|
|
316
|
-
name: string;
|
|
317
|
-
parentID: string | null;
|
|
318
|
-
type: GuildChannels;
|
|
319
|
-
}
|
|
320
|
-
export interface JSONGuildPreview extends JSONBase {
|
|
321
|
-
approximateMemberCount: number;
|
|
322
|
-
approximatePresenceCount: number;
|
|
323
|
-
description: string | null;
|
|
324
|
-
discoverySplash: string | null;
|
|
325
|
-
emojis: Array<GuildEmoji>;
|
|
326
|
-
features: Array<GuildFeature>;
|
|
327
|
-
icon: string | null;
|
|
328
|
-
name: string;
|
|
329
|
-
splash: string | null;
|
|
330
|
-
stickers: Array<RawSticker>;
|
|
331
|
-
}
|
|
332
|
-
export interface JSONGuildTemplate {
|
|
333
|
-
code: string;
|
|
334
|
-
createdAt: number;
|
|
335
|
-
creator: JSONUser;
|
|
336
|
-
description: string | null;
|
|
337
|
-
isDirty: boolean | null;
|
|
338
|
-
name: string;
|
|
339
|
-
serializedSourceGuild: Partial<RawGuild>;
|
|
340
|
-
sourceGuildID: string;
|
|
341
|
-
updatedAt: number;
|
|
342
|
-
usageCount: number;
|
|
343
|
-
}
|
|
344
|
-
export interface JSONIntegration extends JSONBase {
|
|
345
|
-
account: IntegrationAccount;
|
|
346
|
-
application?: JSONPartialApplication;
|
|
347
|
-
enableEmoticons?: boolean;
|
|
348
|
-
enabled?: boolean;
|
|
349
|
-
expireBehavior?: IntegrationExpireBehaviors;
|
|
350
|
-
expireGracePeriod?: number;
|
|
351
|
-
name: string;
|
|
352
|
-
revoked?: boolean;
|
|
353
|
-
roleID: string | null;
|
|
354
|
-
scopes?: Array<string>;
|
|
355
|
-
subscriberCount?: number;
|
|
356
|
-
syncedAt?: number;
|
|
357
|
-
syncing?: boolean;
|
|
358
|
-
type: IntegrationType;
|
|
359
|
-
user?: JSONUser;
|
|
360
|
-
}
|
|
361
|
-
export interface JSONInteraction extends JSONBase {
|
|
362
|
-
applicationID: string;
|
|
363
|
-
token: string;
|
|
364
|
-
type: InteractionTypes;
|
|
365
|
-
version: 1;
|
|
366
|
-
}
|
|
367
|
-
export interface JSONInvite {
|
|
368
|
-
approximateMemberCount?: number;
|
|
369
|
-
approximatePresenceCount?: number;
|
|
370
|
-
channelID?: string;
|
|
371
|
-
code: string;
|
|
372
|
-
createdAt?: number;
|
|
373
|
-
expiresAt?: number;
|
|
374
|
-
guild?: JSONInviteGuild;
|
|
375
|
-
guildID?: string;
|
|
376
|
-
guildScheduledEvent?: JSONScheduledEvent;
|
|
377
|
-
inviter?: string;
|
|
378
|
-
maxAge?: number;
|
|
379
|
-
maxUses?: number;
|
|
380
|
-
stageInstance?: {
|
|
381
|
-
members: Array<string>;
|
|
382
|
-
participantCount: number;
|
|
383
|
-
speakerCount: number;
|
|
384
|
-
topic: string;
|
|
385
|
-
};
|
|
386
|
-
targetApplication?: JSONPartialApplication;
|
|
387
|
-
targetType?: InviteTargetTypes;
|
|
388
|
-
targetUser?: string;
|
|
389
|
-
temporary?: boolean;
|
|
390
|
-
uses?: number;
|
|
391
|
-
}
|
|
392
|
-
export interface JSONInviteGuild extends JSONBase {
|
|
393
|
-
banner: string | null;
|
|
394
|
-
description: string | null;
|
|
395
|
-
features: Array<GuildFeature>;
|
|
396
|
-
icon: string | null;
|
|
397
|
-
name: string;
|
|
398
|
-
nsfwLevel: GuildNSFWLevels;
|
|
399
|
-
premiumSubscriptionCount?: number;
|
|
400
|
-
splash: string | null;
|
|
401
|
-
vanityURLCode: string | null;
|
|
402
|
-
verificationLevel: VerificationLevels;
|
|
403
|
-
}
|
|
404
|
-
export interface JSONMediaChannel extends JSONThreadOnlyChannel {
|
|
405
|
-
type: ChannelTypes.GUILD_MEDIA;
|
|
406
|
-
}
|
|
407
|
-
export interface JSONMember extends JSONBase {
|
|
408
|
-
avatar: string | null;
|
|
409
|
-
communicationDisabledUntil: number | null;
|
|
410
|
-
deaf: boolean;
|
|
411
|
-
flags?: number;
|
|
412
|
-
guildID: string;
|
|
413
|
-
isPending?: boolean;
|
|
414
|
-
joinedAt: number | null;
|
|
415
|
-
mute: boolean;
|
|
416
|
-
nick: string | null;
|
|
417
|
-
pending: boolean;
|
|
418
|
-
premiumSince: number | null;
|
|
419
|
-
presence?: Presence;
|
|
420
|
-
roles: Array<string>;
|
|
421
|
-
user: JSONUser;
|
|
422
|
-
}
|
|
423
|
-
export interface JSONMessage extends JSONBase {
|
|
424
|
-
activity?: MessageActivity;
|
|
425
|
-
applicationID?: string;
|
|
426
|
-
attachments: Array<JSONAttachment>;
|
|
427
|
-
author: JSONUser;
|
|
428
|
-
channelID: string;
|
|
429
|
-
components?: Array<MessageActionRow>;
|
|
430
|
-
content: string;
|
|
431
|
-
editedTimestamp: number | null;
|
|
432
|
-
embeds: Array<Embed>;
|
|
433
|
-
flags?: number;
|
|
434
|
-
guildID?: string;
|
|
435
|
-
interaction?: {
|
|
436
|
-
id: string;
|
|
437
|
-
member?: JSONMember;
|
|
438
|
-
name: string;
|
|
439
|
-
type: InteractionTypes;
|
|
440
|
-
user: JSONUser;
|
|
441
|
-
};
|
|
442
|
-
interactionMetadata?: {
|
|
443
|
-
authorizingIntegrationOwners: AuthorizingIntegrationOwners;
|
|
444
|
-
id: string;
|
|
445
|
-
interactedMessageID?: string;
|
|
446
|
-
name?: string;
|
|
447
|
-
originalResponseMessageID?: string;
|
|
448
|
-
triggeringInteractionMetadata?: {
|
|
449
|
-
authorizingIntegrationOwners: AuthorizingIntegrationOwners;
|
|
450
|
-
id: string;
|
|
451
|
-
interactedMessageID?: string;
|
|
452
|
-
originalResponseMessageID?: string;
|
|
453
|
-
type: InteractionTypes;
|
|
454
|
-
user: JSONUser | Uncached;
|
|
455
|
-
};
|
|
456
|
-
type: InteractionTypes;
|
|
457
|
-
user: JSONUser | Uncached;
|
|
458
|
-
};
|
|
459
|
-
mentionChannels?: Array<ChannelMention>;
|
|
460
|
-
mentions: {
|
|
461
|
-
channels: Array<string>;
|
|
462
|
-
everyone: boolean;
|
|
463
|
-
members: Array<JSONMember>;
|
|
464
|
-
roles: Array<string>;
|
|
465
|
-
users: Array<JSONUser>;
|
|
466
|
-
};
|
|
467
|
-
messageReference?: MessageReference;
|
|
468
|
-
nonce?: number | string;
|
|
469
|
-
pinned: boolean;
|
|
470
|
-
position?: number;
|
|
471
|
-
reactions: Array<MessageReaction>;
|
|
472
|
-
referencedMessage?: JSONMessage | null;
|
|
473
|
-
stickerItems?: Array<StickerItem>;
|
|
474
|
-
thread?: JSONAnnouncementThreadChannel | JSONPublicThreadChannel | JSONPrivateThreadChannel;
|
|
475
|
-
timestamp: number;
|
|
476
|
-
tts: boolean;
|
|
477
|
-
type: MessageTypes;
|
|
478
|
-
webhook?: string;
|
|
479
|
-
}
|
|
480
|
-
export interface JSONModalSubmitInteraction extends JSONInteraction {
|
|
481
|
-
appPermissions: JSONPermission;
|
|
482
|
-
authorizingIntegrationOwners: AuthorizingIntegrationOwners;
|
|
483
|
-
channelID: string;
|
|
484
|
-
context?: InteractionContextTypes;
|
|
485
|
-
data: ModalSubmitInteractionData;
|
|
486
|
-
guildID?: string;
|
|
487
|
-
guildLocale?: string;
|
|
488
|
-
locale: string;
|
|
489
|
-
member?: JSONMember;
|
|
490
|
-
type: InteractionTypes.MODAL_SUBMIT;
|
|
491
|
-
user: JSONUser;
|
|
492
|
-
}
|
|
493
|
-
export interface JSONOAuthApplication extends JSONBase {
|
|
494
|
-
botPublic: boolean;
|
|
495
|
-
botRequireCodeGrant: boolean;
|
|
496
|
-
coverImage: string | null;
|
|
497
|
-
customInstallURL?: string;
|
|
498
|
-
description: string;
|
|
499
|
-
flags: number;
|
|
500
|
-
guildID: string | null;
|
|
501
|
-
icon: string | null;
|
|
502
|
-
installParams?: InstallParams;
|
|
503
|
-
integrationTypes: Array<ApplicationIntegrationTypes>;
|
|
504
|
-
integrationTypesConfig?: IntegrationTypesConfig;
|
|
505
|
-
name: string;
|
|
506
|
-
owner: JSONUser;
|
|
507
|
-
ownerID: string;
|
|
508
|
-
primarySKUID?: string;
|
|
509
|
-
privacyPolicyURL?: string;
|
|
510
|
-
roleConnectionsVerificationURL?: string;
|
|
511
|
-
rpcOrigins: Array<string>;
|
|
512
|
-
slug?: string;
|
|
513
|
-
tags?: Array<string>;
|
|
514
|
-
team: JSONTeam | null;
|
|
515
|
-
termsOfServiceURL?: string;
|
|
516
|
-
type: number | null;
|
|
517
|
-
verifyKey: string;
|
|
518
|
-
}
|
|
519
|
-
export interface JSONOAuthGuild extends JSONBase {
|
|
520
|
-
approximateMemberCount?: number;
|
|
521
|
-
approximatePresenceCount?: number;
|
|
522
|
-
features: Array<GuildFeature>;
|
|
523
|
-
icon: string | null;
|
|
524
|
-
name: string;
|
|
525
|
-
owner: boolean;
|
|
526
|
-
permissions: JSONPermission;
|
|
527
|
-
}
|
|
528
|
-
export interface JSONPartialApplication extends JSONBase {
|
|
529
|
-
botPublic?: boolean;
|
|
530
|
-
botRequireCodeGrant?: boolean;
|
|
531
|
-
description: string;
|
|
532
|
-
icon: string | null;
|
|
533
|
-
name: string;
|
|
534
|
-
verifyKey?: string;
|
|
535
|
-
}
|
|
536
|
-
export interface JSONPermission {
|
|
537
|
-
allow: string;
|
|
538
|
-
deny: string;
|
|
539
|
-
}
|
|
540
|
-
export interface JSONPermissionOverwrite extends JSONBase {
|
|
541
|
-
permission: JSONPermission;
|
|
542
|
-
type: OverwriteTypes;
|
|
543
|
-
}
|
|
544
|
-
export interface JSONPingInteraction extends JSONInteraction {
|
|
545
|
-
type: InteractionTypes.PING;
|
|
546
|
-
}
|
|
547
|
-
export interface JSONPrivateChannel extends JSONChannel {
|
|
548
|
-
lastMessageID: string | null;
|
|
549
|
-
messages: Array<string>;
|
|
550
|
-
recipient: JSONUser;
|
|
551
|
-
type: ChannelTypes.DM;
|
|
552
|
-
}
|
|
553
|
-
export interface JSONPrivateThreadChannel extends JSONThreadChannel {
|
|
554
|
-
threadMetadata: PrivateThreadMetadata;
|
|
555
|
-
type: ChannelTypes.PRIVATE_THREAD;
|
|
556
|
-
}
|
|
557
|
-
export interface JSONPublicThreadChannel extends JSONThreadChannel {
|
|
558
|
-
appliedTags: Array<string>;
|
|
559
|
-
threadMetadata: ThreadMetadata;
|
|
560
|
-
type: ChannelTypes.PUBLIC_THREAD;
|
|
561
|
-
}
|
|
562
|
-
export interface JSONRole extends JSONBase {
|
|
563
|
-
color: number;
|
|
564
|
-
guildID: string;
|
|
565
|
-
hoist: boolean;
|
|
566
|
-
icon: string | null;
|
|
567
|
-
managed: boolean;
|
|
568
|
-
mentionable: boolean;
|
|
569
|
-
name: string;
|
|
570
|
-
permissions: JSONPermission;
|
|
571
|
-
position: number;
|
|
572
|
-
tags: RoleTags;
|
|
573
|
-
unicodeEmoji: string | null;
|
|
574
|
-
}
|
|
575
|
-
export interface JSONScheduledEvent extends JSONBase {
|
|
576
|
-
channelID: string | null;
|
|
577
|
-
creator?: JSONUser;
|
|
578
|
-
description?: string | null;
|
|
579
|
-
entityID: string | null;
|
|
580
|
-
entityMetadata: ScheduledEventEntityMetadata | null;
|
|
581
|
-
entityType: GuildScheduledEventEntityTypes;
|
|
582
|
-
guildID: string;
|
|
583
|
-
image?: string | null;
|
|
584
|
-
name: string;
|
|
585
|
-
privacyLevel: GuildScheduledEventPrivacyLevels;
|
|
586
|
-
scheduledEndTime: number | null;
|
|
587
|
-
scheduledStartTime: number;
|
|
588
|
-
status: GuildScheduledEventStatuses;
|
|
589
|
-
userCount?: number;
|
|
590
|
-
}
|
|
591
|
-
export interface JSONStageChannel extends JSONTextableVoiceChannel {
|
|
592
|
-
type: ChannelTypes.GUILD_STAGE_VOICE;
|
|
593
|
-
}
|
|
594
|
-
export interface JSONStageInstance extends JSONBase {
|
|
595
|
-
channelID: string;
|
|
596
|
-
discoverableDisabled: boolean;
|
|
597
|
-
guildID: string;
|
|
598
|
-
privacyLevel: StageInstancePrivacyLevels;
|
|
599
|
-
scheduledEventID: string | null;
|
|
600
|
-
topic: string;
|
|
601
|
-
}
|
|
602
|
-
export interface JSONTeam extends JSONBase {
|
|
603
|
-
icon: string | null;
|
|
604
|
-
members: Array<TeamMember>;
|
|
605
|
-
name: string;
|
|
606
|
-
ownerID: string;
|
|
607
|
-
}
|
|
608
|
-
export interface JSONTestEntitlement extends JSONBaseEntitlement {}
|
|
609
|
-
export interface JSONTextableChannel extends JSONGuildChannel {
|
|
610
|
-
lastMessageID: string | null;
|
|
611
|
-
messages: Array<string>;
|
|
612
|
-
nsfw: boolean;
|
|
613
|
-
permissionOverwrites: Array<JSONPermissionOverwrite>;
|
|
614
|
-
position: number;
|
|
615
|
-
rateLimitPerUser: number;
|
|
616
|
-
topic: string | null;
|
|
617
|
-
type: TextableGuildChannels;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
export interface JSONTextableVoiceChannel extends JSONTextableChannel {
|
|
621
|
-
bitrate: number;
|
|
622
|
-
rtcRegion: string | null;
|
|
623
|
-
type: VoiceChannels;
|
|
624
|
-
userLimit: number;
|
|
625
|
-
videoQualityMode: VideoQualityModes;
|
|
626
|
-
voiceMembers: Array<string>;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export interface JSONTextChannel extends JSONThreadableChannel {
|
|
630
|
-
type: ChannelTypes.GUILD_TEXT;
|
|
631
|
-
}
|
|
632
|
-
export interface JSONThreadableChannel extends JSONTextableChannel {
|
|
633
|
-
defaultAutoArchiveDuration: ThreadAutoArchiveDuration;
|
|
634
|
-
threads: Array<string>;
|
|
635
|
-
type: ChannelTypes.GUILD_TEXT | ChannelTypes.GUILD_ANNOUNCEMENT;
|
|
636
|
-
}
|
|
637
|
-
export interface JSONThreadChannel extends JSONGuildChannel {
|
|
638
|
-
flags: number;
|
|
639
|
-
lastMessageID: string | null;
|
|
640
|
-
memberCount: number;
|
|
641
|
-
messageCount: number;
|
|
642
|
-
messages: Array<string>;
|
|
643
|
-
ownerID: string;
|
|
644
|
-
rateLimitPerUser: number;
|
|
645
|
-
threadMetadata: ThreadMetadata | PrivateThreadMetadata;
|
|
646
|
-
totalMessageSent: number;
|
|
647
|
-
type: ThreadChannels;
|
|
648
|
-
}
|
|
649
|
-
export interface JSONThreadOnlyChannel extends JSONGuildChannel {
|
|
650
|
-
availableTags: Array<ForumTag>;
|
|
651
|
-
defaultAutoArchiveDuration: ThreadAutoArchiveDuration;
|
|
652
|
-
defaultForumLayout: ForumLayoutTypes;
|
|
653
|
-
defaultReactionEmoji: ForumEmoji | null;
|
|
654
|
-
defaultSortOrder: SortOrderTypes | null;
|
|
655
|
-
defaultThreadRateLimitPerUser: number;
|
|
656
|
-
flags: number;
|
|
657
|
-
lastThreadID: string | null;
|
|
658
|
-
permissionOverwrites: Array<JSONPermissionOverwrite>;
|
|
659
|
-
position: number;
|
|
660
|
-
rateLimitPerUser: number;
|
|
661
|
-
threads: Array<string>;
|
|
662
|
-
topic: string | null;
|
|
663
|
-
type: ThreadOnlyChannels;
|
|
664
|
-
}
|
|
665
|
-
export interface JSONUnavailableGuild extends JSONBase {
|
|
666
|
-
unavailable: true;
|
|
667
|
-
}
|
|
668
|
-
export interface JSONUser extends JSONBase {
|
|
669
|
-
accentColor?: number | null;
|
|
670
|
-
avatar: string | null;
|
|
671
|
-
banner?: string | null;
|
|
672
|
-
bot: boolean;
|
|
673
|
-
discriminator: string;
|
|
674
|
-
globalName: string | null;
|
|
675
|
-
publicFlags: number;
|
|
676
|
-
system: boolean;
|
|
677
|
-
username: string;
|
|
678
|
-
}
|
|
679
|
-
export interface JSONVoiceChannel extends JSONTextableVoiceChannel {
|
|
680
|
-
status: string | null;
|
|
681
|
-
type: ChannelTypes.GUILD_VOICE;
|
|
682
|
-
}
|
|
683
|
-
export interface JSONVoiceState extends JSONBase {
|
|
684
|
-
channelID: string | null;
|
|
685
|
-
deaf: boolean;
|
|
686
|
-
guildID?: string;
|
|
687
|
-
member?: JSONMember;
|
|
688
|
-
mute: boolean;
|
|
689
|
-
requestToSpeakTimestamp: number | null;
|
|
690
|
-
selfDeaf: boolean;
|
|
691
|
-
selfMute: boolean;
|
|
692
|
-
selfStream: boolean;
|
|
693
|
-
selfVideo: boolean;
|
|
694
|
-
sessionID: string;
|
|
695
|
-
suppress: boolean;
|
|
696
|
-
user?: JSONUser;
|
|
697
|
-
}
|
|
698
|
-
export interface JSONWebhook extends JSONBase {
|
|
699
|
-
applicationID: string | null;
|
|
700
|
-
avatar: string | null;
|
|
701
|
-
channelID: string | null;
|
|
702
|
-
guildID: string | null;
|
|
703
|
-
name: string | null;
|
|
704
|
-
sourceChannel?: Pick<RawChannel, "id" | "name">;
|
|
705
|
-
sourceGuild?: Pick<RawGuild, "id" | "name" | "icon">;
|
|
706
|
-
token?: string;
|
|
707
|
-
type: WebhookTypes;
|
|
708
|
-
user?: JSONUser;
|
|
709
|
-
}
|
package/dist/lib/types/misc.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
/** @module Types/Miscellaneous */
|
|
3
|
-
|
|
4
|
-
import type Client from "../Client";
|
|
5
|
-
|
|
6
|
-
export type StringMap<T extends Record<string, any>> = { [K in keyof T]: `${T[K]}` };
|
|
7
|
-
export type ReverseMap<T extends Record<keyof T, keyof any>> = {
|
|
8
|
-
[P in T[keyof T]]: {
|
|
9
|
-
[K in keyof T]: T[K] extends P ? K : never
|
|
10
|
-
}[keyof T]
|
|
11
|
-
};
|
|
12
|
-
export type AnyClass<T, I, E extends Array<unknown>> = new(data: T, client: Client, ...extra: E) => I;
|
|
13
|
-
export type WithRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
|