disgroove 1.3.3-dev.2 → 1.3.3-dev.3
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 +1 -1
- package/package.json +1 -1
- package/dist/lib/Client.d.ts +0 -234
- package/dist/lib/Client.js +0 -256
- package/dist/lib/Client.js.map +0 -1
- package/dist/lib/constants.d.ts +0 -1084
- package/dist/lib/constants.js +0 -1163
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/gateway/Shard.d.ts +0 -25
- package/dist/lib/gateway/Shard.js +0 -522
- package/dist/lib/gateway/Shard.js.map +0 -1
- package/dist/lib/gateway/ShardsManager.d.ts +0 -5
- package/dist/lib/gateway/ShardsManager.js +0 -13
- package/dist/lib/gateway/ShardsManager.js.map +0 -1
- package/dist/lib/gateway/index.d.ts +0 -2
- package/dist/lib/gateway/index.js +0 -19
- package/dist/lib/gateway/index.js.map +0 -1
- package/dist/lib/index.d.ts +0 -7
- package/dist/lib/index.js +0 -24
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/rest/CDN.d.ts +0 -21
- package/dist/lib/rest/CDN.js +0 -46
- package/dist/lib/rest/CDN.js.map +0 -1
- package/dist/lib/rest/Endpoints.d.ts +0 -94
- package/dist/lib/rest/Endpoints.js +0 -211
- package/dist/lib/rest/Endpoints.js.map +0 -1
- package/dist/lib/rest/REST.d.ts +0 -22
- package/dist/lib/rest/REST.js +0 -35
- package/dist/lib/rest/REST.js.map +0 -1
- package/dist/lib/rest/RequestsManager.d.ts +0 -17
- package/dist/lib/rest/RequestsManager.js +0 -124
- package/dist/lib/rest/RequestsManager.js.map +0 -1
- package/dist/lib/rest/index.d.ts +0 -4
- package/dist/lib/rest/index.js +0 -34
- package/dist/lib/rest/index.js.map +0 -1
- package/dist/lib/structures/Application.d.ts +0 -174
- package/dist/lib/structures/Application.js +0 -328
- package/dist/lib/structures/Application.js.map +0 -1
- package/dist/lib/structures/ApplicationCommand.d.ts +0 -45
- package/dist/lib/structures/ApplicationCommand.js +0 -127
- package/dist/lib/structures/ApplicationCommand.js.map +0 -1
- package/dist/lib/structures/AuditLog.d.ts +0 -20
- package/dist/lib/structures/AuditLog.js +0 -76
- package/dist/lib/structures/AuditLog.js.map +0 -1
- package/dist/lib/structures/AutoModerationRule.d.ts +0 -34
- package/dist/lib/structures/AutoModerationRule.js +0 -96
- package/dist/lib/structures/AutoModerationRule.js.map +0 -1
- package/dist/lib/structures/Base.d.ts +0 -17
- package/dist/lib/structures/Base.js +0 -31
- package/dist/lib/structures/Base.js.map +0 -1
- package/dist/lib/structures/Channel.d.ts +0 -253
- package/dist/lib/structures/Channel.js +0 -591
- package/dist/lib/structures/Channel.js.map +0 -1
- package/dist/lib/structures/ClientApplication.d.ts +0 -150
- package/dist/lib/structures/ClientApplication.js +0 -241
- package/dist/lib/structures/ClientApplication.js.map +0 -1
- package/dist/lib/structures/Emoji.d.ts +0 -28
- package/dist/lib/structures/Emoji.js +0 -79
- package/dist/lib/structures/Emoji.js.map +0 -1
- package/dist/lib/structures/Entitlement.d.ts +0 -24
- package/dist/lib/structures/Entitlement.js +0 -68
- package/dist/lib/structures/Entitlement.js.map +0 -1
- package/dist/lib/structures/Guild.d.ts +0 -462
- package/dist/lib/structures/Guild.js +0 -1095
- package/dist/lib/structures/Guild.js.map +0 -1
- package/dist/lib/structures/GuildMember.d.ts +0 -50
- package/dist/lib/structures/GuildMember.js +0 -149
- package/dist/lib/structures/GuildMember.js.map +0 -1
- package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -49
- package/dist/lib/structures/GuildScheduledEvent.js +0 -118
- package/dist/lib/structures/GuildScheduledEvent.js.map +0 -1
- package/dist/lib/structures/GuildTemplate.d.ts +0 -32
- package/dist/lib/structures/GuildTemplate.js +0 -76
- package/dist/lib/structures/GuildTemplate.js.map +0 -1
- package/dist/lib/structures/Integration.d.ts +0 -30
- package/dist/lib/structures/Integration.js +0 -102
- package/dist/lib/structures/Integration.js.map +0 -1
- package/dist/lib/structures/Interaction.d.ts +0 -76
- package/dist/lib/structures/Interaction.js +0 -345
- package/dist/lib/structures/Interaction.js.map +0 -1
- package/dist/lib/structures/Invite.d.ts +0 -28
- package/dist/lib/structures/Invite.js +0 -86
- package/dist/lib/structures/Invite.js.map +0 -1
- package/dist/lib/structures/Message.d.ts +0 -84
- package/dist/lib/structures/Message.js +0 -300
- package/dist/lib/structures/Message.js.map +0 -1
- package/dist/lib/structures/Role.d.ts +0 -37
- package/dist/lib/structures/Role.js +0 -90
- package/dist/lib/structures/Role.js.map +0 -1
- package/dist/lib/structures/SKU.d.ts +0 -23
- package/dist/lib/structures/SKU.js +0 -63
- package/dist/lib/structures/SKU.js.map +0 -1
- package/dist/lib/structures/StageInstance.d.ts +0 -24
- package/dist/lib/structures/StageInstance.js +0 -57
- package/dist/lib/structures/StageInstance.js.map +0 -1
- package/dist/lib/structures/Sticker.d.ts +0 -31
- package/dist/lib/structures/Sticker.js +0 -86
- package/dist/lib/structures/Sticker.js.map +0 -1
- package/dist/lib/structures/Team.d.ts +0 -14
- package/dist/lib/structures/Team.js +0 -39
- package/dist/lib/structures/Team.js.map +0 -1
- package/dist/lib/structures/TestEntitlement.d.ts +0 -23
- package/dist/lib/structures/TestEntitlement.js +0 -61
- package/dist/lib/structures/TestEntitlement.js.map +0 -1
- package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
- package/dist/lib/structures/UnavailableGuild.js +0 -25
- package/dist/lib/structures/UnavailableGuild.js.map +0 -1
- package/dist/lib/structures/User.d.ts +0 -63
- package/dist/lib/structures/User.js +0 -177
- package/dist/lib/structures/User.js.map +0 -1
- package/dist/lib/structures/VoiceState.d.ts +0 -26
- package/dist/lib/structures/VoiceState.js +0 -70
- package/dist/lib/structures/VoiceState.js.map +0 -1
- package/dist/lib/structures/Webhook.d.ts +0 -84
- package/dist/lib/structures/Webhook.js +0 -239
- package/dist/lib/structures/Webhook.js.map +0 -1
- package/dist/lib/structures/index.d.ts +0 -27
- package/dist/lib/structures/index.js +0 -44
- package/dist/lib/structures/index.js.map +0 -1
- package/dist/lib/types/application-command.d.ts +0 -102
- package/dist/lib/types/application-command.js +0 -3
- package/dist/lib/types/application-command.js.map +0 -1
- package/dist/lib/types/application-role-connection-metadata.d.ts +0 -18
- package/dist/lib/types/application-role-connection-metadata.js +0 -3
- package/dist/lib/types/application-role-connection-metadata.js.map +0 -1
- package/dist/lib/types/application.d.ts +0 -66
- package/dist/lib/types/application.js +0 -3
- package/dist/lib/types/application.js.map +0 -1
- package/dist/lib/types/audit-log.d.ts +0 -82
- package/dist/lib/types/audit-log.js +0 -3
- package/dist/lib/types/audit-log.js.map +0 -1
- package/dist/lib/types/auto-moderation.d.ts +0 -65
- package/dist/lib/types/auto-moderation.js +0 -3
- package/dist/lib/types/auto-moderation.js.map +0 -1
- package/dist/lib/types/channel.d.ts +0 -456
- package/dist/lib/types/channel.js +0 -3
- package/dist/lib/types/channel.js.map +0 -1
- package/dist/lib/types/emoji.d.ts +0 -22
- package/dist/lib/types/emoji.js +0 -3
- package/dist/lib/types/emoji.js.map +0 -1
- package/dist/lib/types/entitlements.d.ts +0 -32
- package/dist/lib/types/entitlements.js +0 -3
- package/dist/lib/types/entitlements.js.map +0 -1
- package/dist/lib/types/gateway-events.d.ts +0 -805
- package/dist/lib/types/gateway-events.js +0 -3
- package/dist/lib/types/gateway-events.js.map +0 -1
- package/dist/lib/types/guild-scheduled-event.d.ts +0 -57
- package/dist/lib/types/guild-scheduled-event.js +0 -3
- package/dist/lib/types/guild-scheduled-event.js.map +0 -1
- package/dist/lib/types/guild-template.d.ts +0 -28
- package/dist/lib/types/guild-template.js +0 -3
- package/dist/lib/types/guild-template.js.map +0 -1
- package/dist/lib/types/guild.d.ts +0 -333
- package/dist/lib/types/guild.js +0 -3
- package/dist/lib/types/guild.js.map +0 -1
- package/dist/lib/types/index.d.ts +0 -23
- package/dist/lib/types/index.js +0 -40
- package/dist/lib/types/index.js.map +0 -1
- package/dist/lib/types/interaction.d.ts +0 -170
- package/dist/lib/types/interaction.js +0 -3
- package/dist/lib/types/interaction.js.map +0 -1
- package/dist/lib/types/invite.d.ts +0 -59
- package/dist/lib/types/invite.js +0 -3
- package/dist/lib/types/invite.js.map +0 -1
- package/dist/lib/types/message-components.d.ts +0 -100
- package/dist/lib/types/message-components.js +0 -3
- package/dist/lib/types/message-components.js.map +0 -1
- package/dist/lib/types/role.d.ts +0 -47
- package/dist/lib/types/role.js +0 -3
- package/dist/lib/types/role.js.map +0 -1
- package/dist/lib/types/sku.d.ts +0 -30
- package/dist/lib/types/sku.js +0 -3
- package/dist/lib/types/sku.js.map +0 -1
- package/dist/lib/types/stage-instance.d.ts +0 -20
- package/dist/lib/types/stage-instance.js +0 -3
- package/dist/lib/types/stage-instance.js.map +0 -1
- package/dist/lib/types/sticker.d.ts +0 -61
- package/dist/lib/types/sticker.js +0 -3
- package/dist/lib/types/sticker.js.map +0 -1
- package/dist/lib/types/team.d.ts +0 -30
- package/dist/lib/types/team.js +0 -3
- package/dist/lib/types/team.js.map +0 -1
- package/dist/lib/types/user.d.ts +0 -77
- package/dist/lib/types/user.js +0 -3
- package/dist/lib/types/user.js.map +0 -1
- package/dist/lib/types/voice.d.ts +0 -47
- package/dist/lib/types/voice.js +0 -3
- package/dist/lib/types/voice.js.map +0 -1
- package/dist/lib/types/webhook.d.ts +0 -31
- package/dist/lib/types/webhook.js +0 -3
- package/dist/lib/types/webhook.js.map +0 -1
- package/dist/lib/utils/Util.d.ts +0 -15
- package/dist/lib/utils/Util.js +0 -543
- package/dist/lib/utils/Util.js.map +0 -1
- package/dist/lib/utils/errors.d.ts +0 -12
- package/dist/lib/utils/errors.js +0 -25
- package/dist/lib/utils/errors.js.map +0 -1
- package/dist/lib/utils/index.d.ts +0 -2
- package/dist/lib/utils/index.js +0 -19
- package/dist/lib/utils/index.js.map +0 -1
- package/examples/applicationCommands.js +0 -43
- package/examples/buttons.js +0 -70
- package/examples/embeds.js +0 -36
- package/examples/ephemeralMessages.js +0 -32
- package/examples/files.js +0 -36
- package/examples/modalSubmit.js +0 -62
- package/examples/permissions.js +0 -41
- package/examples/selectMenus.js +0 -160
- package/examples/text.txt +0 -1
- package/lib/Client.ts +0 -616
- package/lib/constants.ts +0 -1173
- package/lib/gateway/Shard.ts +0 -704
- package/lib/gateway/ShardsManager.ts +0 -11
- package/lib/gateway/index.ts +0 -2
- package/lib/index.ts +0 -7
- package/lib/rest/CDN.ts +0 -56
- package/lib/rest/Endpoints.ts +0 -241
- package/lib/rest/REST.ts +0 -45
- package/lib/rest/RequestsManager.ts +0 -134
- package/lib/rest/index.ts +0 -4
- package/lib/structures/Application.ts +0 -599
- package/lib/structures/ApplicationCommand.ts +0 -187
- package/lib/structures/AuditLog.ts +0 -112
- package/lib/structures/AutoModerationRule.ts +0 -127
- package/lib/structures/Base.ts +0 -39
- package/lib/structures/Channel.ts +0 -921
- package/lib/structures/ClientApplication.ts +0 -515
- package/lib/structures/Emoji.ts +0 -95
- package/lib/structures/Entitlement.ts +0 -65
- package/lib/structures/Guild.ts +0 -1842
- package/lib/structures/GuildMember.ts +0 -193
- package/lib/structures/GuildScheduledEvent.ts +0 -164
- package/lib/structures/GuildTemplate.ts +0 -103
- package/lib/structures/Integration.ts +0 -136
- package/lib/structures/Interaction.ts +0 -506
- package/lib/structures/Invite.ts +0 -108
- package/lib/structures/Message.ts +0 -421
- package/lib/structures/Role.ts +0 -116
- package/lib/structures/SKU.ts +0 -63
- package/lib/structures/StageInstance.ts +0 -74
- package/lib/structures/Sticker.ts +0 -100
- package/lib/structures/Team.ts +0 -41
- package/lib/structures/TestEntitlement.ts +0 -78
- package/lib/structures/UnavailableGuild.ts +0 -27
- package/lib/structures/User.ts +0 -233
- package/lib/structures/VoiceState.ts +0 -72
- package/lib/structures/Webhook.ts +0 -341
- package/lib/structures/index.ts +0 -27
- package/lib/types/application-command.ts +0 -118
- package/lib/types/application-role-connection-metadata.ts +0 -23
- package/lib/types/application.ts +0 -77
- package/lib/types/audit-log.ts +0 -105
- package/lib/types/auto-moderation.ts +0 -78
- package/lib/types/channel.ts +0 -534
- package/lib/types/emoji.ts +0 -24
- package/lib/types/entitlements.ts +0 -34
- package/lib/types/gateway-events.ts +0 -970
- package/lib/types/guild-scheduled-event.ts +0 -67
- package/lib/types/guild-template.ts +0 -30
- package/lib/types/guild.ts +0 -388
- package/lib/types/index.ts +0 -23
- package/lib/types/interaction.ts +0 -224
- package/lib/types/invite.ts +0 -78
- package/lib/types/message-components.ts +0 -127
- package/lib/types/role.ts +0 -51
- package/lib/types/sku.ts +0 -32
- package/lib/types/stage-instance.ts +0 -22
- package/lib/types/sticker.ts +0 -67
- package/lib/types/team.ts +0 -34
- package/lib/types/user.ts +0 -93
- package/lib/types/voice.ts +0 -51
- package/lib/types/webhook.ts +0 -40
- package/lib/utils/Util.ts +0 -600
- package/lib/utils/errors.ts +0 -23
- package/lib/utils/index.ts +0 -2
- package/test/basic.js +0 -8
- package/tsconfig.json +0 -107
@@ -1,67 +0,0 @@
|
|
1
|
-
import type {
|
2
|
-
GuildScheduledEventPrivacyLevel,
|
3
|
-
GuildScheduledEventStatus,
|
4
|
-
GuildScheduledEventEntityTypes,
|
5
|
-
} from "../constants";
|
6
|
-
import type { JSONGuildMember, JSONUser, RawGuildMember, RawUser } from ".";
|
7
|
-
|
8
|
-
/** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-structure */
|
9
|
-
export interface RawGuildScheduledEvent {
|
10
|
-
id: string;
|
11
|
-
guild_id: string;
|
12
|
-
channel_id: string | null;
|
13
|
-
creator_id?: string | null;
|
14
|
-
name: string;
|
15
|
-
description?: string | null;
|
16
|
-
scheduled_start_time: string;
|
17
|
-
scheduled_end_time: string | null;
|
18
|
-
privacy_level: GuildScheduledEventPrivacyLevel;
|
19
|
-
status: GuildScheduledEventStatus;
|
20
|
-
entity_type: GuildScheduledEventEntityTypes;
|
21
|
-
entity_id?: string;
|
22
|
-
entity_metadata: RawGuildScheduledEventEntityMetadata | null;
|
23
|
-
creator?: RawUser;
|
24
|
-
user_count?: number;
|
25
|
-
image?: string;
|
26
|
-
}
|
27
|
-
|
28
|
-
/** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-entity-metadata */
|
29
|
-
export interface RawGuildScheduledEventEntityMetadata {
|
30
|
-
location?: string;
|
31
|
-
}
|
32
|
-
|
33
|
-
/** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-user-object-guild-scheduled-event-user-structure */
|
34
|
-
export interface RawGuildScheduledEventUser {
|
35
|
-
guild_scheduled_event_id: string;
|
36
|
-
user: RawUser;
|
37
|
-
member?: RawGuildMember;
|
38
|
-
}
|
39
|
-
|
40
|
-
export interface JSONGuildScheduledEvent {
|
41
|
-
id: string;
|
42
|
-
guildId: string;
|
43
|
-
channelId: string | null;
|
44
|
-
creatorId?: string | null;
|
45
|
-
name: string;
|
46
|
-
description?: string | null;
|
47
|
-
scheduledStartTime: string;
|
48
|
-
scheduledEndTime: string | null;
|
49
|
-
privacyLevel: GuildScheduledEventPrivacyLevel;
|
50
|
-
status: GuildScheduledEventStatus;
|
51
|
-
entityType: GuildScheduledEventEntityTypes;
|
52
|
-
entityId?: string;
|
53
|
-
entityMetadata: JSONGuildScheduledEventEntityMetadata | null;
|
54
|
-
creator?: JSONUser;
|
55
|
-
userCount?: number;
|
56
|
-
image?: string;
|
57
|
-
}
|
58
|
-
|
59
|
-
export interface JSONGuildScheduledEventEntityMetadata {
|
60
|
-
location?: string;
|
61
|
-
}
|
62
|
-
|
63
|
-
export interface JSONGuildScheduledEventUser {
|
64
|
-
guildScheduledEventId: string;
|
65
|
-
user: JSONUser;
|
66
|
-
member?: JSONGuildMember;
|
67
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import type { JSONGuild, JSONUser, RawGuild, RawUser } from ".";
|
2
|
-
|
3
|
-
/** https://discord.com/developers/docs/resources/guild-template#guild-template-object-guild-template-structure */
|
4
|
-
export interface RawGuildTemplate {
|
5
|
-
code: string;
|
6
|
-
name: string;
|
7
|
-
description: string | null;
|
8
|
-
usage_count: number;
|
9
|
-
creator_id: string;
|
10
|
-
creator: RawUser;
|
11
|
-
created_at: string;
|
12
|
-
updated_at: string;
|
13
|
-
source_guild_id: string;
|
14
|
-
serialized_source_guild: RawGuild;
|
15
|
-
is_dirty: boolean | null;
|
16
|
-
}
|
17
|
-
|
18
|
-
export interface JSONGuildTemplate {
|
19
|
-
code: string;
|
20
|
-
name: string;
|
21
|
-
description: string | null;
|
22
|
-
usageCount: number;
|
23
|
-
creatorId: string;
|
24
|
-
creator: JSONUser;
|
25
|
-
createdAt: string;
|
26
|
-
updatedAt: string;
|
27
|
-
sourceGuildId: string;
|
28
|
-
serializedSourceGuild: JSONGuild;
|
29
|
-
isDirty: boolean | null;
|
30
|
-
}
|
package/lib/types/guild.ts
DELETED
@@ -1,388 +0,0 @@
|
|
1
|
-
import type {
|
2
|
-
VerificationLevel,
|
3
|
-
DefaultMessageNotificationLevel,
|
4
|
-
ExplicitContentFilterLevel,
|
5
|
-
GuildFeatures,
|
6
|
-
MFALevel,
|
7
|
-
PremiumTier,
|
8
|
-
GuildNSFWLevel,
|
9
|
-
GuildMemberFlags,
|
10
|
-
IntegrationExpireBehaviors,
|
11
|
-
OAuth2Scopes,
|
12
|
-
SystemChannelFlags,
|
13
|
-
OnboardingMode,
|
14
|
-
PromptTypes,
|
15
|
-
} from "../constants";
|
16
|
-
import type {
|
17
|
-
RawChannel,
|
18
|
-
RawEmoji,
|
19
|
-
RawSticker,
|
20
|
-
RawUser,
|
21
|
-
RawRole,
|
22
|
-
JSONEmoji,
|
23
|
-
JSONSticker,
|
24
|
-
JSONUser,
|
25
|
-
JSONRole,
|
26
|
-
JSONChannel,
|
27
|
-
} from ".";
|
28
|
-
|
29
|
-
/** https://discord.com/developers/docs/resources/guild#guild-object-guild-structure */
|
30
|
-
export interface RawGuild {
|
31
|
-
id: string;
|
32
|
-
name: string;
|
33
|
-
icon: string | null;
|
34
|
-
icon_hash?: string | null;
|
35
|
-
splash: string | null;
|
36
|
-
discovery_splash: string | null;
|
37
|
-
owner?: boolean;
|
38
|
-
owner_id: string;
|
39
|
-
permissions?: string;
|
40
|
-
region?: string | null;
|
41
|
-
afk_channel_id: string | null;
|
42
|
-
afk_timeout: number;
|
43
|
-
widget_enabled?: boolean;
|
44
|
-
widget_channel_id?: string | null;
|
45
|
-
verification_level: VerificationLevel;
|
46
|
-
default_message_notifications: DefaultMessageNotificationLevel;
|
47
|
-
explicit_content_filter: ExplicitContentFilterLevel;
|
48
|
-
roles: Array<RawRole>;
|
49
|
-
emojis: Array<RawEmoji>;
|
50
|
-
features: Array<GuildFeatures>;
|
51
|
-
mfa_level: MFALevel;
|
52
|
-
application_id: string | null;
|
53
|
-
system_channel_id: string | null;
|
54
|
-
system_channel_flags: SystemChannelFlags;
|
55
|
-
rules_channel_id: string | null;
|
56
|
-
max_presences?: number | null;
|
57
|
-
max_members?: number;
|
58
|
-
vanity_url_code: string | null;
|
59
|
-
description: string | null;
|
60
|
-
banner: string | null;
|
61
|
-
premium_tier: PremiumTier;
|
62
|
-
premium_subscription_count?: number;
|
63
|
-
preferred_locale: string;
|
64
|
-
public_updates_channel_id: string | null;
|
65
|
-
max_video_channel_users?: number;
|
66
|
-
max_stage_video_channel_users?: number;
|
67
|
-
approximate_member_count?: number;
|
68
|
-
approximate_presence_count?: number;
|
69
|
-
welcome_screen?: RawWelcomeScreen;
|
70
|
-
nsfw_level: GuildNSFWLevel;
|
71
|
-
stickers?: Array<RawSticker>;
|
72
|
-
premium_progress_bar_enabled: boolean;
|
73
|
-
safety_alerts_channel_id: string | null;
|
74
|
-
}
|
75
|
-
|
76
|
-
/** https://discord.com/developers/docs/resources/guild#unavailable-guild-object */
|
77
|
-
export interface RawUnavailableGuild {
|
78
|
-
id: string;
|
79
|
-
unavailable: boolean;
|
80
|
-
}
|
81
|
-
|
82
|
-
/** https://discord.com/developers/docs/resources/guild#guild-preview-object-guild-preview-structure */
|
83
|
-
export interface RawGuildPreview {
|
84
|
-
id: string;
|
85
|
-
name: string;
|
86
|
-
icon: string | null;
|
87
|
-
splash: string | null;
|
88
|
-
discovery_splash: string | null;
|
89
|
-
emojis: Array<RawEmoji>;
|
90
|
-
features: Array<GuildFeatures>;
|
91
|
-
approximate_member_count?: number;
|
92
|
-
approximate_presence_count?: number;
|
93
|
-
description: string | null;
|
94
|
-
stickers?: Array<RawSticker>;
|
95
|
-
}
|
96
|
-
|
97
|
-
/** https://discord.com/developers/docs/resources/guild#guild-widget-settings-object-guild-widget-settings-structure */
|
98
|
-
export interface RawGuildWidgetSettings {
|
99
|
-
enabled: boolean;
|
100
|
-
channel_id: string | null;
|
101
|
-
}
|
102
|
-
|
103
|
-
/** https://discord.com/developers/docs/resources/guild#guild-widget-object-guild-widget-structure */
|
104
|
-
export interface RawGuildWidget {
|
105
|
-
id: string;
|
106
|
-
name: string;
|
107
|
-
instant_invite: string | null;
|
108
|
-
channels: Array<RawChannel>;
|
109
|
-
members: Array<RawUser>;
|
110
|
-
presence_count: number;
|
111
|
-
}
|
112
|
-
|
113
|
-
/** https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-structure */
|
114
|
-
export interface RawGuildMember {
|
115
|
-
user?: RawUser;
|
116
|
-
nick?: string | null;
|
117
|
-
avatar?: string | null;
|
118
|
-
roles: Array<string>;
|
119
|
-
joined_at: string;
|
120
|
-
premium_since?: number | null;
|
121
|
-
deaf: boolean;
|
122
|
-
mute: boolean;
|
123
|
-
flags: GuildMemberFlags;
|
124
|
-
pending?: boolean;
|
125
|
-
permissions?: string;
|
126
|
-
communication_disabled_until?: number | null;
|
127
|
-
}
|
128
|
-
|
129
|
-
/** https://discord.com/developers/docs/resources/guild#integration-object-integration-structure */
|
130
|
-
export interface RawIntegration {
|
131
|
-
id: string;
|
132
|
-
name: string;
|
133
|
-
type: string;
|
134
|
-
enabled: boolean;
|
135
|
-
syncing?: boolean;
|
136
|
-
role_id?: string;
|
137
|
-
enable_emoticons?: boolean;
|
138
|
-
expire_behavior?: IntegrationExpireBehaviors;
|
139
|
-
expire_grace_period?: number;
|
140
|
-
user?: RawUser;
|
141
|
-
account: RawIntegrationAccount;
|
142
|
-
synced_at?: string;
|
143
|
-
subscriber_count?: number;
|
144
|
-
revoked?: boolean;
|
145
|
-
application?: RawIntegrationApplication;
|
146
|
-
scopes?: Array<OAuth2Scopes>;
|
147
|
-
}
|
148
|
-
|
149
|
-
/** https://discord.com/developers/docs/resources/guild#integration-account-object-integration-account-structure */
|
150
|
-
export interface RawIntegrationAccount {
|
151
|
-
id: string;
|
152
|
-
name: string;
|
153
|
-
}
|
154
|
-
|
155
|
-
/** https://discord.com/developers/docs/resources/guild#integration-application-object-integration-application-structure */
|
156
|
-
export interface RawIntegrationApplication {
|
157
|
-
id: string;
|
158
|
-
name: string;
|
159
|
-
icon: string | null;
|
160
|
-
description: string;
|
161
|
-
bot?: RawUser;
|
162
|
-
}
|
163
|
-
|
164
|
-
/** https://discord.com/developers/docs/resources/guild#ban-object-ban-structure */
|
165
|
-
export interface RawBan {
|
166
|
-
reason: string | null;
|
167
|
-
user: RawUser;
|
168
|
-
}
|
169
|
-
|
170
|
-
/** https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-structure */
|
171
|
-
export interface RawWelcomeScreen {
|
172
|
-
description: string | null;
|
173
|
-
welcome_channels: Array<RawWelcomeScreenChannel>;
|
174
|
-
}
|
175
|
-
|
176
|
-
/** https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-channel-structure */
|
177
|
-
export interface RawWelcomeScreenChannel {
|
178
|
-
channel_id: string;
|
179
|
-
description: string;
|
180
|
-
emoji_id: string | null;
|
181
|
-
emoji_name: string | null;
|
182
|
-
}
|
183
|
-
|
184
|
-
/** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-guild-onboarding-structure */
|
185
|
-
export interface RawGuildOnboarding {
|
186
|
-
guild_id: string;
|
187
|
-
prompts: Array<RawOnboardingPrompt>;
|
188
|
-
default_channel_ids: Array<string>;
|
189
|
-
enabled: boolean;
|
190
|
-
mode: OnboardingMode;
|
191
|
-
}
|
192
|
-
|
193
|
-
/** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-onboarding-prompt-structure */
|
194
|
-
export interface RawOnboardingPrompt {
|
195
|
-
id: string;
|
196
|
-
type: PromptTypes;
|
197
|
-
options: Array<RawPromptOption>;
|
198
|
-
title: string;
|
199
|
-
single_select: boolean;
|
200
|
-
required: boolean;
|
201
|
-
in_onboarding: boolean;
|
202
|
-
}
|
203
|
-
|
204
|
-
/** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-prompt-option-structure */
|
205
|
-
export interface RawPromptOption {
|
206
|
-
id: string;
|
207
|
-
channel_ids: Array<string>;
|
208
|
-
role_ids: Array<string>;
|
209
|
-
emoji?: RawEmoji;
|
210
|
-
emoji_id?: string;
|
211
|
-
emoji_name?: string;
|
212
|
-
emoji_animated?: boolean;
|
213
|
-
title: string;
|
214
|
-
description: string | null;
|
215
|
-
}
|
216
|
-
|
217
|
-
export interface JSONGuild {
|
218
|
-
id: string;
|
219
|
-
name: string;
|
220
|
-
icon: string | null;
|
221
|
-
iconHash?: string | null;
|
222
|
-
splash: string | null;
|
223
|
-
discoverySplash: string | null;
|
224
|
-
owner?: boolean;
|
225
|
-
ownerId: string;
|
226
|
-
permissions?: string;
|
227
|
-
region?: string | null;
|
228
|
-
afkChannelId: string | null;
|
229
|
-
afkTimeout: number;
|
230
|
-
widgetEnabled?: boolean;
|
231
|
-
widgetChannelId?: string | null;
|
232
|
-
verificationLevel: VerificationLevel;
|
233
|
-
defaultMessageNotifications: DefaultMessageNotificationLevel;
|
234
|
-
explicitContentFilter: ExplicitContentFilterLevel;
|
235
|
-
roles: Array<JSONRole>;
|
236
|
-
emojis: Array<JSONEmoji>;
|
237
|
-
features: Array<GuildFeatures>;
|
238
|
-
mfaLevel: MFALevel;
|
239
|
-
applicationId: string | null;
|
240
|
-
systemChannelId: string | null;
|
241
|
-
systemChannelFlags: SystemChannelFlags;
|
242
|
-
rulesChannelId: string | null;
|
243
|
-
maxPresences?: number | null;
|
244
|
-
maxMembers?: number;
|
245
|
-
vanityURLCode: string | null;
|
246
|
-
description: string | null;
|
247
|
-
banner: string | null;
|
248
|
-
premiumTier: PremiumTier;
|
249
|
-
premiumSubscriptionCount?: number;
|
250
|
-
preferredLocale: string;
|
251
|
-
publicUpdatesChannelId: string | null;
|
252
|
-
maxVideoChannelUsers?: number;
|
253
|
-
maxStageVideoChannelUsers?: number;
|
254
|
-
approximateMemberCount?: number;
|
255
|
-
approximatePresenceCount?: number;
|
256
|
-
welcomeScreen?: JSONWelcomeScreen;
|
257
|
-
nsfwLevel: GuildNSFWLevel;
|
258
|
-
stickers?: Array<JSONSticker>;
|
259
|
-
premiumProgressBarEnabled: boolean;
|
260
|
-
safetyAlertsChannelId: string | null;
|
261
|
-
}
|
262
|
-
|
263
|
-
export interface JSONUnavailableGuild {
|
264
|
-
id: string;
|
265
|
-
unavailable: boolean;
|
266
|
-
}
|
267
|
-
|
268
|
-
export interface JSONGuildPreview {
|
269
|
-
id: string;
|
270
|
-
name: string;
|
271
|
-
icon: string | null;
|
272
|
-
splash: string | null;
|
273
|
-
discoverySplash: string | null;
|
274
|
-
emojis: Array<JSONEmoji>;
|
275
|
-
features: Array<GuildFeatures>;
|
276
|
-
approximateMemberCount?: number;
|
277
|
-
approximatePresenceCount?: number;
|
278
|
-
description: string | null;
|
279
|
-
stickers?: Array<JSONSticker>;
|
280
|
-
}
|
281
|
-
|
282
|
-
export interface JSONGuildWidgetSettings {
|
283
|
-
enabled: boolean;
|
284
|
-
channelId: string | null;
|
285
|
-
}
|
286
|
-
|
287
|
-
export interface JSONGuildWidget {
|
288
|
-
id: string;
|
289
|
-
name: string;
|
290
|
-
instantInvite: string | null;
|
291
|
-
channels: Array<JSONChannel>;
|
292
|
-
members: Array<JSONUser>;
|
293
|
-
presenceCount: number;
|
294
|
-
}
|
295
|
-
|
296
|
-
export interface JSONGuildMember {
|
297
|
-
user?: JSONUser;
|
298
|
-
nick?: string | null;
|
299
|
-
avatar?: string | null;
|
300
|
-
roles: Array<string>;
|
301
|
-
joinedAt: string;
|
302
|
-
premiumSince?: number | null;
|
303
|
-
deaf: boolean;
|
304
|
-
mute: boolean;
|
305
|
-
flags: GuildMemberFlags;
|
306
|
-
pending?: boolean;
|
307
|
-
permissions?: string;
|
308
|
-
communicationDisabledUntil?: number | null;
|
309
|
-
}
|
310
|
-
|
311
|
-
export interface JSONIntegration {
|
312
|
-
id: string;
|
313
|
-
name: string;
|
314
|
-
type: string;
|
315
|
-
enabled: boolean;
|
316
|
-
syncing?: boolean;
|
317
|
-
roleId?: string;
|
318
|
-
enableEmoticons?: boolean;
|
319
|
-
expireBehavior?: IntegrationExpireBehaviors;
|
320
|
-
expireGracePeriod?: number;
|
321
|
-
user?: JSONUser;
|
322
|
-
account: JSONIntegrationAccount;
|
323
|
-
syncedAt?: string;
|
324
|
-
subscriberCount?: number;
|
325
|
-
revoked?: boolean;
|
326
|
-
application?: JSONIntegrationApplication;
|
327
|
-
scopes?: Array<OAuth2Scopes>;
|
328
|
-
}
|
329
|
-
|
330
|
-
export interface JSONIntegrationAccount {
|
331
|
-
id: string;
|
332
|
-
name: string;
|
333
|
-
}
|
334
|
-
|
335
|
-
export interface JSONIntegrationApplication {
|
336
|
-
id: string;
|
337
|
-
name: string;
|
338
|
-
icon: string | null;
|
339
|
-
description: string;
|
340
|
-
bot?: JSONUser;
|
341
|
-
}
|
342
|
-
|
343
|
-
export interface JSONBan {
|
344
|
-
reason: string | null;
|
345
|
-
user: JSONUser;
|
346
|
-
}
|
347
|
-
|
348
|
-
export interface JSONWelcomeScreen {
|
349
|
-
description: string | null;
|
350
|
-
welcomeChannels: Array<JSONWelcomeScreenChannel>;
|
351
|
-
}
|
352
|
-
|
353
|
-
export interface JSONWelcomeScreenChannel {
|
354
|
-
channelId: string;
|
355
|
-
description: string;
|
356
|
-
emojiId: string | null;
|
357
|
-
emojiName: string | null;
|
358
|
-
}
|
359
|
-
|
360
|
-
export interface JSONGuildOnboarding {
|
361
|
-
guildId: string;
|
362
|
-
prompts: Array<JSONOnboardingPrompt>;
|
363
|
-
defaultChannelIds: Array<string>;
|
364
|
-
enabled: boolean;
|
365
|
-
mode: OnboardingMode;
|
366
|
-
}
|
367
|
-
|
368
|
-
export interface JSONOnboardingPrompt {
|
369
|
-
id: string;
|
370
|
-
type: PromptTypes;
|
371
|
-
options: Array<JSONPromptOption>;
|
372
|
-
title: string;
|
373
|
-
singleSelect: boolean;
|
374
|
-
required: boolean;
|
375
|
-
inOnboarding: boolean;
|
376
|
-
}
|
377
|
-
|
378
|
-
export interface JSONPromptOption {
|
379
|
-
id: string;
|
380
|
-
channelIds: Array<string>;
|
381
|
-
roleIds: Array<string>;
|
382
|
-
emoji?: JSONEmoji;
|
383
|
-
emojiId?: string;
|
384
|
-
emojiName?: string;
|
385
|
-
emojiAnimated?: boolean;
|
386
|
-
title: string;
|
387
|
-
description: string | null;
|
388
|
-
}
|
package/lib/types/index.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
export * from "./application-command";
|
2
|
-
export * from "./application-role-connection-metadata";
|
3
|
-
export * from "./application";
|
4
|
-
export * from "./audit-log";
|
5
|
-
export * from "./auto-moderation";
|
6
|
-
export * from "./channel";
|
7
|
-
export * from "./emoji";
|
8
|
-
export * from "./entitlements";
|
9
|
-
export * from "./gateway-events";
|
10
|
-
export * from "./guild-scheduled-event";
|
11
|
-
export * from "./guild-template";
|
12
|
-
export * from "./guild";
|
13
|
-
export * from "./interaction";
|
14
|
-
export * from "./invite";
|
15
|
-
export * from "./message-components";
|
16
|
-
export * from "./role";
|
17
|
-
export * from "./sku";
|
18
|
-
export * from "./stage-instance";
|
19
|
-
export * from "./sticker";
|
20
|
-
export * from "./team";
|
21
|
-
export * from "./user";
|
22
|
-
export * from "./voice";
|
23
|
-
export * from "./webhook";
|