disgroove 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/class/Client.d.ts +306 -0
- package/dist/class/Client.js +771 -0
- package/dist/class/Client.js.map +1 -0
- package/dist/class/index.d.ts +1 -0
- package/dist/class/index.js +18 -0
- package/dist/class/index.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/rest/Endpoints.d.ts +97 -0
- package/dist/rest/Endpoints.js +205 -0
- package/dist/rest/Endpoints.js.map +1 -0
- package/dist/rest/REST.d.ts +16 -0
- package/dist/rest/REST.js +55 -0
- package/dist/rest/REST.js.map +1 -0
- package/dist/rest/index.d.ts +2 -0
- package/dist/rest/index.js +32 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/structures/Application.d.ts +250 -0
- package/dist/structures/Application.js +258 -0
- package/dist/structures/Application.js.map +1 -0
- package/dist/structures/ApplicationCommand.d.ts +68 -0
- package/dist/structures/ApplicationCommand.js +133 -0
- package/dist/structures/ApplicationCommand.js.map +1 -0
- package/dist/structures/AuditLogEntry.d.ts +16 -0
- package/dist/structures/AuditLogEntry.js +54 -0
- package/dist/structures/AuditLogEntry.js.map +1 -0
- package/dist/structures/AutoModerationRule.d.ts +29 -0
- package/dist/structures/AutoModerationRule.js +85 -0
- package/dist/structures/AutoModerationRule.js.map +1 -0
- package/dist/structures/Channel.d.ts +296 -0
- package/dist/structures/Channel.js +579 -0
- package/dist/structures/Channel.js.map +1 -0
- package/dist/structures/Guild.d.ts +452 -0
- package/dist/structures/Guild.js +1161 -0
- package/dist/structures/Guild.js.map +1 -0
- package/dist/structures/GuildMember.d.ts +46 -0
- package/dist/structures/GuildMember.js +126 -0
- package/dist/structures/GuildMember.js.map +1 -0
- package/dist/structures/GuildScheduledEvent.d.ts +45 -0
- package/dist/structures/GuildScheduledEvent.js +115 -0
- package/dist/structures/GuildScheduledEvent.js.map +1 -0
- package/dist/structures/GuildTemplate.d.ts +25 -0
- package/dist/structures/GuildTemplate.js +80 -0
- package/dist/structures/GuildTemplate.js.map +1 -0
- package/dist/structures/Integration.d.ts +28 -0
- package/dist/structures/Integration.js +96 -0
- package/dist/structures/Integration.js.map +1 -0
- package/dist/structures/Interaction.d.ts +204 -0
- package/dist/structures/Interaction.js +368 -0
- package/dist/structures/Interaction.js.map +1 -0
- package/dist/structures/Invite.d.ts +22 -0
- package/dist/structures/Invite.js +108 -0
- package/dist/structures/Invite.js.map +1 -0
- package/dist/structures/Message.d.ts +97 -0
- package/dist/structures/Message.js +327 -0
- package/dist/structures/Message.js.map +1 -0
- package/dist/structures/Role.d.ts +35 -0
- package/dist/structures/Role.js +81 -0
- package/dist/structures/Role.js.map +1 -0
- package/dist/structures/StageInstance.d.ts +20 -0
- package/dist/structures/StageInstance.js +53 -0
- package/dist/structures/StageInstance.js.map +1 -0
- package/dist/structures/User.d.ts +53 -0
- package/dist/structures/User.js +168 -0
- package/dist/structures/User.js.map +1 -0
- package/dist/structures/Webhook.d.ts +133 -0
- package/dist/structures/Webhook.js +189 -0
- package/dist/structures/Webhook.js.map +1 -0
- package/dist/structures/index.d.ts +17 -0
- package/dist/structures/index.js +34 -0
- package/dist/structures/index.js.map +1 -0
- package/dist/types/application-command.d.ts +97 -0
- package/dist/types/application-command.js +3 -0
- package/dist/types/application-command.js.map +1 -0
- package/dist/types/application-role-connection-metadata.d.ts +17 -0
- package/dist/types/application-role-connection-metadata.js +3 -0
- package/dist/types/application-role-connection-metadata.js.map +1 -0
- package/dist/types/application.d.ts +55 -0
- package/dist/types/application.js +3 -0
- package/dist/types/application.js.map +1 -0
- package/dist/types/audit-log.d.ts +77 -0
- package/dist/types/audit-log.js +3 -0
- package/dist/types/audit-log.js.map +1 -0
- package/dist/types/auto-moderation.d.ts +61 -0
- package/dist/types/auto-moderation.js +3 -0
- package/dist/types/auto-moderation.js.map +1 -0
- package/dist/types/channel.d.ts +411 -0
- package/dist/types/channel.js +3 -0
- package/dist/types/channel.js.map +1 -0
- package/dist/types/emoji.d.ts +22 -0
- package/dist/types/emoji.js +3 -0
- package/dist/types/emoji.js.map +1 -0
- package/dist/types/gateway-events.d.ts +53 -0
- package/dist/types/gateway-events.js +3 -0
- package/dist/types/gateway-events.js.map +1 -0
- package/dist/types/guild-scheduled-event.d.ts +55 -0
- package/dist/types/guild-scheduled-event.js +3 -0
- package/dist/types/guild-scheduled-event.js.map +1 -0
- package/dist/types/guild-template.d.ts +28 -0
- package/dist/types/guild-template.js +3 -0
- package/dist/types/guild-template.js.map +1 -0
- package/dist/types/guild.d.ts +305 -0
- package/dist/types/guild.js +3 -0
- package/dist/types/guild.js.map +1 -0
- package/dist/types/index.d.ts +22 -0
- package/dist/types/index.js +39 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/interaction.d.ts +141 -0
- package/dist/types/interaction.js +3 -0
- package/dist/types/interaction.js.map +1 -0
- package/dist/types/invite.d.ts +56 -0
- package/dist/types/invite.js +3 -0
- package/dist/types/invite.js.map +1 -0
- package/dist/types/message-components.d.ts +76 -0
- package/dist/types/message-components.js +3 -0
- package/dist/types/message-components.js.map +1 -0
- package/dist/types/oauth2.d.ts +14 -0
- package/dist/types/oauth2.js +3 -0
- package/dist/types/oauth2.js.map +1 -0
- package/dist/types/role.d.ts +42 -0
- package/dist/types/role.js +3 -0
- package/dist/types/role.js.map +1 -0
- package/dist/types/stage-instance.d.ts +18 -0
- package/dist/types/stage-instance.js +3 -0
- package/dist/types/stage-instance.js.map +1 -0
- package/dist/types/sticker.d.ts +59 -0
- package/dist/types/sticker.js +3 -0
- package/dist/types/sticker.js.map +1 -0
- package/dist/types/team.d.ts +28 -0
- package/dist/types/team.js +3 -0
- package/dist/types/team.js.map +1 -0
- package/dist/types/user.d.ts +73 -0
- package/dist/types/user.js +3 -0
- package/dist/types/user.js.map +1 -0
- package/dist/types/voice.d.ts +46 -0
- package/dist/types/voice.js +3 -0
- package/dist/types/voice.js.map +1 -0
- package/dist/types/webhook.d.ts +31 -0
- package/dist/types/webhook.js +3 -0
- package/dist/types/webhook.js.map +1 -0
- package/dist/utils/constants.d.ts +963 -0
- package/dist/utils/constants.js +1147 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/rawers.d.ts +467 -0
- package/dist/utils/rawers.js +295 -0
- package/dist/utils/rawers.js.map +1 -0
- package/package.json +27 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oauth2.js","sourceRoot":"","sources":["../../src/types/oauth2.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface RawRole {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
color: number;
|
|
5
|
+
hoist: boolean;
|
|
6
|
+
icon?: string | null;
|
|
7
|
+
unicode_emoji?: string | null;
|
|
8
|
+
position: number;
|
|
9
|
+
permissions: string;
|
|
10
|
+
managed: boolean;
|
|
11
|
+
mentionable: boolean;
|
|
12
|
+
tags?: RawRoleTags;
|
|
13
|
+
}
|
|
14
|
+
export interface RawRoleTags {
|
|
15
|
+
bot_id?: string;
|
|
16
|
+
integration_id?: string;
|
|
17
|
+
premium_subscriber?: null;
|
|
18
|
+
subscription_listing_id?: string;
|
|
19
|
+
available_for_purchase?: null;
|
|
20
|
+
guild_connections?: null;
|
|
21
|
+
}
|
|
22
|
+
export interface JSONRole {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
color: number;
|
|
26
|
+
hoist: boolean;
|
|
27
|
+
icon?: string | null;
|
|
28
|
+
unicodeEmoji?: string | null;
|
|
29
|
+
position: number;
|
|
30
|
+
permissions: string;
|
|
31
|
+
managed: boolean;
|
|
32
|
+
mentionable: boolean;
|
|
33
|
+
tags?: JSONRoleTags;
|
|
34
|
+
}
|
|
35
|
+
export interface JSONRoleTags {
|
|
36
|
+
botId?: string;
|
|
37
|
+
integrationId?: string;
|
|
38
|
+
premiumSubscriber?: null;
|
|
39
|
+
subscriptionListingId?: string;
|
|
40
|
+
availableForPurchase?: null;
|
|
41
|
+
guildConnections?: null;
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../../src/types/role.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface RawStageInstance {
|
|
2
|
+
id: string;
|
|
3
|
+
guild_id: string;
|
|
4
|
+
channel_id: string;
|
|
5
|
+
topic: string;
|
|
6
|
+
privacy_level: number;
|
|
7
|
+
discoverable_disabled: boolean;
|
|
8
|
+
guild_scheduled_event_id: string | null;
|
|
9
|
+
}
|
|
10
|
+
export interface JSONStageInstance {
|
|
11
|
+
id: string;
|
|
12
|
+
guildId: string;
|
|
13
|
+
channelId: string;
|
|
14
|
+
topic: string;
|
|
15
|
+
privacyLevel: number;
|
|
16
|
+
discoverableDisabled: boolean;
|
|
17
|
+
guildScheduledEventId: string | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-instance.js","sourceRoot":"","sources":["../../src/types/stage-instance.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { StickerTypes, StickerFormatTypes } from "../utils/constants";
|
|
2
|
+
import type { RawUser } from ".";
|
|
3
|
+
import type { User } from "../structures";
|
|
4
|
+
export interface RawSticker {
|
|
5
|
+
id: string;
|
|
6
|
+
pack_id?: string;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string | null;
|
|
9
|
+
tags: string;
|
|
10
|
+
asset?: string;
|
|
11
|
+
type: StickerTypes;
|
|
12
|
+
format_type: StickerFormatTypes;
|
|
13
|
+
available?: boolean;
|
|
14
|
+
guild_id?: string;
|
|
15
|
+
user?: RawUser;
|
|
16
|
+
sort_value?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface RawStickerItem {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
format_type: StickerFormatTypes;
|
|
22
|
+
}
|
|
23
|
+
export interface RawStickerPack {
|
|
24
|
+
id: string;
|
|
25
|
+
stickers: Array<RawSticker>;
|
|
26
|
+
name: string;
|
|
27
|
+
sku_id: string;
|
|
28
|
+
cover_sticker_id?: string;
|
|
29
|
+
description: string;
|
|
30
|
+
banner_asset_id?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface JSONSticker {
|
|
33
|
+
id: string;
|
|
34
|
+
packId?: string;
|
|
35
|
+
name: string;
|
|
36
|
+
description: string | null;
|
|
37
|
+
tags: string;
|
|
38
|
+
asset?: string;
|
|
39
|
+
type: StickerTypes;
|
|
40
|
+
formatType: StickerFormatTypes;
|
|
41
|
+
available?: boolean;
|
|
42
|
+
guildId?: string;
|
|
43
|
+
user?: User;
|
|
44
|
+
sortValue?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface JSONStickerItem {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
formatType: StickerFormatTypes;
|
|
50
|
+
}
|
|
51
|
+
export interface JSONStickerPack {
|
|
52
|
+
id: string;
|
|
53
|
+
stickers: Array<JSONSticker>;
|
|
54
|
+
name: string;
|
|
55
|
+
skuId: string;
|
|
56
|
+
coverStickerId?: string;
|
|
57
|
+
description: string;
|
|
58
|
+
bannerAssetId?: string;
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sticker.js","sourceRoot":"","sources":["../../src/types/sticker.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { RawUser } from ".";
|
|
2
|
+
import type { User } from "../structures";
|
|
3
|
+
export interface RawTeam {
|
|
4
|
+
icon: string | null;
|
|
5
|
+
id: string;
|
|
6
|
+
members: Array<RawTeamMember>;
|
|
7
|
+
name: string;
|
|
8
|
+
owner_user_id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RawTeamMember {
|
|
11
|
+
membership_state: number;
|
|
12
|
+
permissions: Array<string>;
|
|
13
|
+
team_id: string;
|
|
14
|
+
user: RawUser;
|
|
15
|
+
}
|
|
16
|
+
export interface JSONTeam {
|
|
17
|
+
icon: string | null;
|
|
18
|
+
id: string;
|
|
19
|
+
members: Array<JSONTeamMember>;
|
|
20
|
+
name: string;
|
|
21
|
+
ownerUserId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface JSONTeamMember {
|
|
24
|
+
membershipState: number;
|
|
25
|
+
permissions: Array<string>;
|
|
26
|
+
teamId: string;
|
|
27
|
+
user: User;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team.js","sourceRoot":"","sources":["../../src/types/team.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { Integration } from "../structures";
|
|
2
|
+
import type { UserFlags, Services, VisibilityTypes } from "../utils/constants";
|
|
3
|
+
import type { JSONApplicationRoleConnectionMetadata, RawApplicationRoleConnectionMetadata, RawIntegration } from "./index";
|
|
4
|
+
export interface RawUser {
|
|
5
|
+
id: string;
|
|
6
|
+
username: string;
|
|
7
|
+
discriminator: string;
|
|
8
|
+
global_name: string | null;
|
|
9
|
+
avatar: string;
|
|
10
|
+
bot?: boolean;
|
|
11
|
+
system?: boolean;
|
|
12
|
+
mfa_enabled?: boolean;
|
|
13
|
+
banner?: string;
|
|
14
|
+
accent_color?: number;
|
|
15
|
+
locale?: string;
|
|
16
|
+
verified?: boolean;
|
|
17
|
+
email?: string;
|
|
18
|
+
flags?: UserFlags;
|
|
19
|
+
premium_type?: number;
|
|
20
|
+
public_flags?: UserFlags;
|
|
21
|
+
}
|
|
22
|
+
export interface RawConnection {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
type: Services;
|
|
26
|
+
revoked?: boolean;
|
|
27
|
+
integrations?: Array<RawIntegration>;
|
|
28
|
+
verified: boolean;
|
|
29
|
+
friend_sync: boolean;
|
|
30
|
+
show_activity: boolean;
|
|
31
|
+
two_way_link: boolean;
|
|
32
|
+
visibility: VisibilityTypes;
|
|
33
|
+
}
|
|
34
|
+
export interface RawApplicationRoleConnection {
|
|
35
|
+
platform_name: string | null;
|
|
36
|
+
platform_username: string | null;
|
|
37
|
+
metadata: RawApplicationRoleConnectionMetadata;
|
|
38
|
+
}
|
|
39
|
+
export interface JSONUser {
|
|
40
|
+
id: string;
|
|
41
|
+
username: string;
|
|
42
|
+
discriminator: string;
|
|
43
|
+
globalName: string | null;
|
|
44
|
+
avatar: string;
|
|
45
|
+
bot?: boolean;
|
|
46
|
+
system?: boolean;
|
|
47
|
+
mfaEnabled?: boolean;
|
|
48
|
+
banner?: string;
|
|
49
|
+
accentColor?: number;
|
|
50
|
+
locale?: string;
|
|
51
|
+
verified?: boolean;
|
|
52
|
+
email?: string;
|
|
53
|
+
flags?: UserFlags;
|
|
54
|
+
premiumType?: number;
|
|
55
|
+
publicFlags?: UserFlags;
|
|
56
|
+
}
|
|
57
|
+
export interface JSONConnection {
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
type: Services;
|
|
61
|
+
revoked?: boolean;
|
|
62
|
+
integrations?: Array<Integration>;
|
|
63
|
+
verified: boolean;
|
|
64
|
+
friendSync: boolean;
|
|
65
|
+
showActivity: boolean;
|
|
66
|
+
twoWayLink: boolean;
|
|
67
|
+
visibility: VisibilityTypes;
|
|
68
|
+
}
|
|
69
|
+
export interface JSONApplicationRoleConnection {
|
|
70
|
+
platformName: string | null;
|
|
71
|
+
platformUsername: string | null;
|
|
72
|
+
metadata: JSONApplicationRoleConnectionMetadata;
|
|
73
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { RawGuildMember } from ".";
|
|
2
|
+
import type { GuildMember } from "../structures";
|
|
3
|
+
export interface RawVoiceState {
|
|
4
|
+
guild_id?: string;
|
|
5
|
+
channel_id: string | null;
|
|
6
|
+
user_id: string;
|
|
7
|
+
member?: RawGuildMember;
|
|
8
|
+
session_id: string;
|
|
9
|
+
deaf: boolean;
|
|
10
|
+
mute: boolean;
|
|
11
|
+
self_deaf: boolean;
|
|
12
|
+
self_mute: boolean;
|
|
13
|
+
self_stream?: boolean;
|
|
14
|
+
self_video: boolean;
|
|
15
|
+
suppress: boolean;
|
|
16
|
+
request_to_speak_timestamp: string | null;
|
|
17
|
+
}
|
|
18
|
+
export interface RawVoiceRegion {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
optimal: boolean;
|
|
22
|
+
deprecated: boolean;
|
|
23
|
+
custom: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface JSONVoiceState {
|
|
26
|
+
guildId?: string;
|
|
27
|
+
channelId: string | null;
|
|
28
|
+
userId: string;
|
|
29
|
+
member?: GuildMember;
|
|
30
|
+
sessionId: string;
|
|
31
|
+
deaf: boolean;
|
|
32
|
+
mute: boolean;
|
|
33
|
+
selfDeaf: boolean;
|
|
34
|
+
selfMute: boolean;
|
|
35
|
+
selfStream?: boolean;
|
|
36
|
+
selfVideo: boolean;
|
|
37
|
+
suppress: boolean;
|
|
38
|
+
requestToSpeakTimestamp: string | null;
|
|
39
|
+
}
|
|
40
|
+
export interface JSONVoiceRegion {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
optimal: boolean;
|
|
44
|
+
deprecated: boolean;
|
|
45
|
+
custom: boolean;
|
|
46
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/types/voice.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { WebhookTypes } from "../utils/constants";
|
|
2
|
+
import type { RawChannel, RawGuild, RawUser } from ".";
|
|
3
|
+
import type { Channel, Guild, User } from "../structures";
|
|
4
|
+
export interface RawWebhook {
|
|
5
|
+
id: string;
|
|
6
|
+
type: WebhookTypes;
|
|
7
|
+
guild_id?: string | null;
|
|
8
|
+
channel_id: string | null;
|
|
9
|
+
user?: RawUser;
|
|
10
|
+
name: string | null;
|
|
11
|
+
avatar: string | null;
|
|
12
|
+
token?: string;
|
|
13
|
+
application_id: string | null;
|
|
14
|
+
source_guild?: RawGuild;
|
|
15
|
+
source_channel?: RawChannel;
|
|
16
|
+
url?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface JSONWebhook {
|
|
19
|
+
id: string;
|
|
20
|
+
type: WebhookTypes;
|
|
21
|
+
guildId?: string | null;
|
|
22
|
+
channelId: string | null;
|
|
23
|
+
user?: User;
|
|
24
|
+
name: string | null;
|
|
25
|
+
avatar: string | null;
|
|
26
|
+
token?: string;
|
|
27
|
+
applicationId: string | null;
|
|
28
|
+
sourceGuild?: Guild;
|
|
29
|
+
sourceChannel?: Channel;
|
|
30
|
+
url?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/types/webhook.ts"],"names":[],"mappings":""}
|