disgroove 2.0.0 → 2.1.0-dev.c430b6f
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/lib/Client.d.ts +10 -1
- package/dist/lib/Client.js +193 -179
- package/dist/lib/constants.d.ts +17 -5
- package/dist/lib/constants.js +221 -209
- package/dist/lib/gateway/Shard.js +6 -1
- package/dist/lib/gateway/ShardManager.js +0 -1
- package/dist/lib/gateway/index.js +0 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/rest/CDN.js +0 -1
- package/dist/lib/rest/Endpoints.d.ts +4 -2
- package/dist/lib/rest/Endpoints.js +8 -5
- package/dist/lib/rest/RequestManager.d.ts +2 -3
- package/dist/lib/rest/RequestManager.js +17 -18
- package/dist/lib/rest/index.js +0 -1
- package/dist/lib/types/application-command.js +0 -1
- package/dist/lib/types/application-role-connection-metadata.js +0 -1
- package/dist/lib/types/application.js +0 -1
- package/dist/lib/types/audit-log.js +0 -1
- package/dist/lib/types/auto-moderation.js +0 -1
- package/dist/lib/types/channel.d.ts +4 -0
- package/dist/lib/types/channel.js +0 -1
- package/dist/lib/types/emoji.js +0 -1
- package/dist/lib/types/entitlements.js +0 -1
- package/dist/lib/types/gateway-events.d.ts +28 -0
- package/dist/lib/types/gateway-events.js +0 -1
- package/dist/lib/types/guild-scheduled-event.js +0 -1
- package/dist/lib/types/guild-template.js +0 -1
- package/dist/lib/types/guild.js +0 -1
- package/dist/lib/types/index.js +0 -1
- package/dist/lib/types/interaction.d.ts +3 -0
- package/dist/lib/types/interaction.js +0 -1
- package/dist/lib/types/invite.js +0 -1
- package/dist/lib/types/message-components.js +0 -1
- package/dist/lib/types/poll.d.ts +52 -0
- package/dist/lib/types/poll.js +2 -0
- package/dist/lib/types/role.js +0 -1
- package/dist/lib/types/sku.js +0 -1
- package/dist/lib/types/stage-instance.js +0 -1
- package/dist/lib/types/sticker.js +0 -1
- package/dist/lib/types/team.js +0 -1
- package/dist/lib/types/user.js +0 -1
- package/dist/lib/types/voice.js +0 -1
- package/dist/lib/types/webhook.d.ts +3 -0
- package/dist/lib/types/webhook.js +0 -1
- package/dist/lib/utils/Util.js +0 -1
- package/dist/lib/utils/errors.d.ts +1 -1
- package/dist/lib/utils/errors.js +4 -5
- package/dist/lib/utils/index.js +0 -1
- package/dist/package.json +4 -1
- package/package.json +4 -1
- package/dist/lib/Client.js.map +0 -1
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/gateway/Shard.js.map +0 -1
- package/dist/lib/gateway/ShardManager.js.map +0 -1
- package/dist/lib/gateway/ShardsManager.d.ts +0 -6
- package/dist/lib/gateway/ShardsManager.js +0 -14
- package/dist/lib/gateway/ShardsManager.js.map +0 -1
- package/dist/lib/gateway/index.js.map +0 -1
- package/dist/lib/index.js.map +0 -1
- package/dist/lib/rest/CDN.js.map +0 -1
- package/dist/lib/rest/Endpoints.js.map +0 -1
- package/dist/lib/rest/REST.d.ts +0 -17
- package/dist/lib/rest/REST.js +0 -35
- package/dist/lib/rest/REST.js.map +0 -1
- package/dist/lib/rest/RequestManager.js.map +0 -1
- package/dist/lib/rest/RequestsManager.d.ts +0 -22
- package/dist/lib/rest/RequestsManager.js +0 -123
- package/dist/lib/rest/RequestsManager.js.map +0 -1
- 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 -19
- package/dist/lib/structures/AuditLog.js +0 -101
- 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 -10
- package/dist/lib/structures/Base.js +0 -23
- package/dist/lib/structures/Base.js.map +0 -1
- package/dist/lib/structures/Channel.d.ts +0 -254
- package/dist/lib/structures/Channel.js +0 -592
- 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 -26
- package/dist/lib/structures/Emoji.js +0 -75
- 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 -474
- package/dist/lib/structures/Guild.js +0 -1141
- package/dist/lib/structures/Guild.js.map +0 -1
- package/dist/lib/structures/GuildMember.d.ts +0 -49
- package/dist/lib/structures/GuildMember.js +0 -146
- 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 -30
- package/dist/lib/structures/GuildTemplate.js +0 -72
- package/dist/lib/structures/GuildTemplate.js.map +0 -1
- package/dist/lib/structures/IdentifiableBase.d.ts +0 -15
- package/dist/lib/structures/IdentifiableBase.js +0 -25
- package/dist/lib/structures/IdentifiableBase.js.map +0 -1
- package/dist/lib/structures/Integration.d.ts +0 -31
- package/dist/lib/structures/Integration.js +0 -103
- 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 -346
- package/dist/lib/structures/Interaction.js.map +0 -1
- package/dist/lib/structures/Invite.d.ts +0 -26
- package/dist/lib/structures/Invite.js +0 -82
- package/dist/lib/structures/Invite.js.map +0 -1
- package/dist/lib/structures/Message.d.ts +0 -86
- package/dist/lib/structures/Message.js +0 -303
- 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 -24
- package/dist/lib/structures/VoiceState.js +0 -66
- package/dist/lib/structures/VoiceState.js.map +0 -1
- package/dist/lib/structures/Webhook.d.ts +0 -82
- package/dist/lib/structures/Webhook.js +0 -223
- package/dist/lib/structures/Webhook.js.map +0 -1
- package/dist/lib/structures/index.d.ts +0 -28
- package/dist/lib/structures/index.js +0 -45
- package/dist/lib/structures/index.js.map +0 -1
- package/dist/lib/types/application-command.js.map +0 -1
- package/dist/lib/types/application-role-connection-metadata.js.map +0 -1
- package/dist/lib/types/application.js.map +0 -1
- package/dist/lib/types/audit-log.js.map +0 -1
- package/dist/lib/types/auto-moderation.js.map +0 -1
- package/dist/lib/types/channel.js.map +0 -1
- package/dist/lib/types/emoji.js.map +0 -1
- package/dist/lib/types/entitlements.js.map +0 -1
- package/dist/lib/types/gateway-events.js.map +0 -1
- package/dist/lib/types/guild-scheduled-event.js.map +0 -1
- package/dist/lib/types/guild-template.js.map +0 -1
- package/dist/lib/types/guild.js.map +0 -1
- package/dist/lib/types/index.js.map +0 -1
- package/dist/lib/types/interaction.js.map +0 -1
- package/dist/lib/types/invite.js.map +0 -1
- package/dist/lib/types/message-components.js.map +0 -1
- package/dist/lib/types/role.js.map +0 -1
- package/dist/lib/types/sku.js.map +0 -1
- package/dist/lib/types/stage-instance.js.map +0 -1
- package/dist/lib/types/sticker.js.map +0 -1
- package/dist/lib/types/team.js.map +0 -1
- package/dist/lib/types/user.js.map +0 -1
- package/dist/lib/types/voice.js.map +0 -1
- package/dist/lib/types/webhook.js.map +0 -1
- package/dist/lib/utils/Collection.d.ts +0 -24
- package/dist/lib/utils/Collection.js +0 -65
- package/dist/lib/utils/Collection.js.map +0 -1
- package/dist/lib/utils/Util.js.map +0 -1
- package/dist/lib/utils/errors.js.map +0 -1
- package/dist/lib/utils/index.js.map +0 -1
@@ -1,177 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.User = void 0;
|
4
|
-
const _1 = require(".");
|
5
|
-
const rest_1 = require("../rest");
|
6
|
-
/** https://discord.com/developers/docs/resources/user */
|
7
|
-
class User extends _1.IdentifiableBase {
|
8
|
-
raw;
|
9
|
-
username;
|
10
|
-
discriminator;
|
11
|
-
avatar;
|
12
|
-
globalName;
|
13
|
-
bot;
|
14
|
-
system;
|
15
|
-
mfaEnabled;
|
16
|
-
banner;
|
17
|
-
accentColor;
|
18
|
-
locale;
|
19
|
-
verified;
|
20
|
-
email;
|
21
|
-
flags;
|
22
|
-
premiumType;
|
23
|
-
publicFlags;
|
24
|
-
avatarDecoration;
|
25
|
-
constructor(data, client) {
|
26
|
-
super(data.id, client);
|
27
|
-
this.raw = data;
|
28
|
-
this.username = data.username;
|
29
|
-
this.discriminator = data.discriminator;
|
30
|
-
this.globalName = data.global_name;
|
31
|
-
this.avatar = data.avatar;
|
32
|
-
this.patch(data);
|
33
|
-
}
|
34
|
-
patch(data) {
|
35
|
-
if (data.bot !== undefined)
|
36
|
-
this.bot = data.bot;
|
37
|
-
if (data.system !== undefined)
|
38
|
-
this.system = data.system;
|
39
|
-
if (data.mfa_enabled !== undefined)
|
40
|
-
this.mfaEnabled = data.mfa_enabled;
|
41
|
-
if (data.banner !== undefined)
|
42
|
-
this.banner = data.banner;
|
43
|
-
if (data.accent_color !== undefined)
|
44
|
-
this.accentColor = data.accent_color;
|
45
|
-
if (data.locale !== undefined)
|
46
|
-
this.locale = data.locale;
|
47
|
-
if (data.verified !== undefined)
|
48
|
-
this.verified = data.verified;
|
49
|
-
if (data.email !== undefined)
|
50
|
-
this.email = data.email;
|
51
|
-
if (data.flags !== undefined)
|
52
|
-
this.flags = data.flags;
|
53
|
-
if (data.premium_type !== undefined)
|
54
|
-
this.premiumType = data.premium_type;
|
55
|
-
if (data.public_flags !== undefined)
|
56
|
-
this.publicFlags = data.public_flags;
|
57
|
-
if (data.avatar_decoration !== undefined)
|
58
|
-
this.avatarDecoration = data.avatar_decoration;
|
59
|
-
}
|
60
|
-
/** https://discord.com/developers/docs/resources/user#create-dm */
|
61
|
-
async createDM(options) {
|
62
|
-
return new _1.Channel(await this.client.rest.post(rest_1.Endpoints.userChannels(), {
|
63
|
-
json: {
|
64
|
-
recipient_id: options.recipientId,
|
65
|
-
},
|
66
|
-
}), this.client);
|
67
|
-
}
|
68
|
-
/** https://discord.com/developers/docs/resources/user#create-group-dm */
|
69
|
-
async createGroupDM(options) {
|
70
|
-
return new _1.Channel(await this.client.rest.post(rest_1.Endpoints.userChannels(), {
|
71
|
-
json: {
|
72
|
-
access_tokens: options.accessTokens,
|
73
|
-
nicks: options.nicks,
|
74
|
-
},
|
75
|
-
}), this.client);
|
76
|
-
}
|
77
|
-
/** https://discord.com/developers/docs/resources/user#modify-current-user */
|
78
|
-
async edit(options) {
|
79
|
-
return new User(await this.client.rest.patch(rest_1.Endpoints.user(), {
|
80
|
-
json: {
|
81
|
-
username: options.username,
|
82
|
-
avatar: options.avatar,
|
83
|
-
},
|
84
|
-
}), this.client);
|
85
|
-
}
|
86
|
-
/** https://discord.com/developers/docs/resources/user#get-user-application-role-connection */
|
87
|
-
async getApplicationRoleConnection() {
|
88
|
-
return this.client.rest
|
89
|
-
.get(rest_1.Endpoints.userApplicationRoleConnection(this.client.application.id))
|
90
|
-
.then((response) => ({
|
91
|
-
platformName: response.platform_name,
|
92
|
-
platformUsername: response.platform_username,
|
93
|
-
metadata: {
|
94
|
-
type: response.metadata.type,
|
95
|
-
key: response.metadata.key,
|
96
|
-
name: response.metadata.name,
|
97
|
-
nameLocalizations: response.metadata.name_localizations,
|
98
|
-
description: response.metadata.description,
|
99
|
-
descriptionLocalizations: response.metadata.description_localizations,
|
100
|
-
},
|
101
|
-
}));
|
102
|
-
}
|
103
|
-
/** https://discord.com/developers/docs/resources/user#get-user-connections */
|
104
|
-
async getConnections() {
|
105
|
-
return this.client.rest
|
106
|
-
.get(rest_1.Endpoints.userConnections())
|
107
|
-
.then((response) => response.map((data) => ({
|
108
|
-
id: data.id,
|
109
|
-
name: data.name,
|
110
|
-
type: data.type,
|
111
|
-
revoked: data.revoked,
|
112
|
-
integrations: data.integrations?.map((integration) => new _1.Integration(integration, this.client).toJSON()),
|
113
|
-
verified: data.verified,
|
114
|
-
friendSync: data.friend_sync,
|
115
|
-
showActivity: data.show_activity,
|
116
|
-
twoWayLink: data.two_way_link,
|
117
|
-
visibility: data.visibility,
|
118
|
-
})));
|
119
|
-
}
|
120
|
-
/** https://discord.com/developers/docs/resources/user#get-current-user-guild-member */
|
121
|
-
async getGuildMember(guildId) {
|
122
|
-
return new _1.GuildMember(await this.client.rest.get(rest_1.Endpoints.guildMember(guildId)), this.client);
|
123
|
-
}
|
124
|
-
/** https://discord.com/developers/docs/resources/user#leave-guild */
|
125
|
-
leaveGuild(guildId) {
|
126
|
-
this.client.rest.delete(rest_1.Endpoints.userGuild(guildId));
|
127
|
-
}
|
128
|
-
/** https://discord.com/developers/docs/resources/user#update-user-application-role-connection */
|
129
|
-
async updateApplicationRoleConnection(options) {
|
130
|
-
return this.client.rest
|
131
|
-
.put(rest_1.Endpoints.userApplicationRoleConnection(this.client.application.id), {
|
132
|
-
json: {
|
133
|
-
platform_name: options.platformName,
|
134
|
-
platform_username: options.platformUsername,
|
135
|
-
metadata: options.metadata,
|
136
|
-
},
|
137
|
-
})
|
138
|
-
.then((response) => ({
|
139
|
-
platformName: response.platform_name,
|
140
|
-
platformUsername: response.platform_username,
|
141
|
-
metadata: {
|
142
|
-
type: response.metadata.type,
|
143
|
-
key: response.metadata.key,
|
144
|
-
name: response.metadata.name,
|
145
|
-
nameLocalizations: response.metadata.name_localizations,
|
146
|
-
description: response.metadata.description,
|
147
|
-
descriptionLocalizations: response.metadata.description_localizations,
|
148
|
-
},
|
149
|
-
}));
|
150
|
-
}
|
151
|
-
toRaw() {
|
152
|
-
return this.raw;
|
153
|
-
}
|
154
|
-
toJSON() {
|
155
|
-
return {
|
156
|
-
...super.toJSON(),
|
157
|
-
username: this.username,
|
158
|
-
discriminator: this.discriminator,
|
159
|
-
globalName: this.globalName,
|
160
|
-
avatar: this.avatar,
|
161
|
-
bot: this.bot,
|
162
|
-
system: this.system,
|
163
|
-
mfaEnabled: this.mfaEnabled,
|
164
|
-
banner: this.banner,
|
165
|
-
accentColor: this.accentColor,
|
166
|
-
locale: this.locale,
|
167
|
-
verified: this.verified,
|
168
|
-
email: this.email,
|
169
|
-
flags: this.flags,
|
170
|
-
premiumType: this.premiumType,
|
171
|
-
publicFlags: this.publicFlags,
|
172
|
-
avatarDecoration: this.avatarDecoration,
|
173
|
-
};
|
174
|
-
}
|
175
|
-
}
|
176
|
-
exports.User = User;
|
177
|
-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C3B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;SACxC,CAAC;IACJ,CAAC;CACF;AApND,oBAoNC"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { Base, GuildMember } from ".";
|
2
|
-
import type { Client } from "../Client";
|
3
|
-
import type { JSONVoiceState, RawVoiceState } from "../types";
|
4
|
-
/** https://discord.com/developers/docs/resources/voice */
|
5
|
-
export declare class VoiceState extends Base {
|
6
|
-
protected raw: RawVoiceState;
|
7
|
-
guildId?: string;
|
8
|
-
channelId: string | null;
|
9
|
-
userId: string;
|
10
|
-
member?: GuildMember;
|
11
|
-
sessionId: string;
|
12
|
-
deaf: boolean;
|
13
|
-
mute: boolean;
|
14
|
-
selfDeaf: boolean;
|
15
|
-
selfMute: boolean;
|
16
|
-
selfStream?: boolean;
|
17
|
-
selfVideo: boolean;
|
18
|
-
suppress: boolean;
|
19
|
-
requestToSpeakTimestamp: string | null;
|
20
|
-
constructor(data: RawVoiceState, client: Client);
|
21
|
-
protected patch(data: RawVoiceState): void;
|
22
|
-
toRaw(): RawVoiceState;
|
23
|
-
toJSON(): JSONVoiceState;
|
24
|
-
}
|
@@ -1,66 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.VoiceState = void 0;
|
4
|
-
const _1 = require(".");
|
5
|
-
/** https://discord.com/developers/docs/resources/voice */
|
6
|
-
class VoiceState extends _1.Base {
|
7
|
-
raw;
|
8
|
-
guildId;
|
9
|
-
channelId;
|
10
|
-
userId;
|
11
|
-
member;
|
12
|
-
sessionId;
|
13
|
-
deaf;
|
14
|
-
mute;
|
15
|
-
selfDeaf;
|
16
|
-
selfMute;
|
17
|
-
selfStream;
|
18
|
-
selfVideo;
|
19
|
-
suppress;
|
20
|
-
requestToSpeakTimestamp;
|
21
|
-
constructor(data, client) {
|
22
|
-
super(client);
|
23
|
-
this.raw = data;
|
24
|
-
this.channelId = data.channel_id;
|
25
|
-
this.userId = data.user_id;
|
26
|
-
this.sessionId = data.session_id;
|
27
|
-
this.deaf = data.deaf;
|
28
|
-
this.mute = data.mute;
|
29
|
-
this.selfDeaf = data.self_deaf;
|
30
|
-
this.selfMute = data.self_mute;
|
31
|
-
this.selfVideo = data.self_video;
|
32
|
-
this.suppress = data.suppress;
|
33
|
-
this.requestToSpeakTimestamp = data.request_to_speak_timestamp;
|
34
|
-
this.patch(data);
|
35
|
-
}
|
36
|
-
patch(data) {
|
37
|
-
if (data.guild_id !== undefined)
|
38
|
-
this.guildId = data.guild_id;
|
39
|
-
if (data.member !== undefined)
|
40
|
-
this.member = new _1.GuildMember(data.member, this.client);
|
41
|
-
if (data.self_stream !== undefined)
|
42
|
-
this.selfStream = data.self_stream;
|
43
|
-
}
|
44
|
-
toRaw() {
|
45
|
-
return this.raw;
|
46
|
-
}
|
47
|
-
toJSON() {
|
48
|
-
return {
|
49
|
-
guildId: this.guildId,
|
50
|
-
channelId: this.channelId,
|
51
|
-
userId: this.userId,
|
52
|
-
member: this.member?.toJSON(),
|
53
|
-
sessionId: this.sessionId,
|
54
|
-
deaf: this.deaf,
|
55
|
-
mute: this.mute,
|
56
|
-
selfDeaf: this.selfDeaf,
|
57
|
-
selfMute: this.selfMute,
|
58
|
-
selfStream: this.selfStream,
|
59
|
-
selfVideo: this.selfVideo,
|
60
|
-
suppress: this.suppress,
|
61
|
-
requestToSpeakTimestamp: this.requestToSpeakTimestamp,
|
62
|
-
};
|
63
|
-
}
|
64
|
-
}
|
65
|
-
exports.VoiceState = VoiceState;
|
66
|
-
//# sourceMappingURL=VoiceState.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VoiceState.js","sourceRoot":"","sources":["../../../lib/structures/VoiceState.ts"],"names":[],"mappings":";;;AAAA,wBAAsC;AAItC,0DAA0D;AAC1D,MAAa,UAAW,SAAQ,OAAI;IACf,GAAG,CAAgB;IAEtC,OAAO,CAAU;IACjB,SAAS,CAAgB;IACzB,MAAM,CAAS;IACf,MAAM,CAAe;IACrB,SAAS,CAAS;IAClB,IAAI,CAAU;IACd,IAAI,CAAU;IACd,QAAQ,CAAU;IAClB,QAAQ,CAAU;IAClB,UAAU,CAAW;IACrB,SAAS,CAAU;IACnB,QAAQ,CAAU;IAClB,uBAAuB,CAAgB;IAEvC,YAAY,IAAmB,EAAE,MAAc;QAC7C,KAAK,CAAC,MAAM,CAAC,CAAC;QAEd,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC;QAChB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;QAC/B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,0BAA0B,CAAC;QAE/D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC;IAEkB,KAAK,CAAC,IAAmB;QAC1C,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;YAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9D,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;YAC3B,IAAI,CAAC,MAAM,GAAG,IAAI,cAAW,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS;YAAE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;IACzE,CAAC;IAEQ,KAAK;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE;YAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;SACtD,CAAC;IACJ,CAAC;CACF;AA/DD,gCA+DC"}
|
@@ -1,82 +0,0 @@
|
|
1
|
-
import { IdentifiableBase, Channel, Guild, Message, User } from ".";
|
2
|
-
import type { Client } from "../Client";
|
3
|
-
import { type File } from "../rest";
|
4
|
-
import type { JSONActionRow, JSONAllowedMentions, JSONAttachment, JSONEmbed, JSONWebhook, RawWebhook } from "../types";
|
5
|
-
import type { MessageFlags, WebhookTypes } from "../constants";
|
6
|
-
/** https://discord.com/developers/docs/resources/webhook */
|
7
|
-
export declare class Webhook extends IdentifiableBase {
|
8
|
-
protected raw: RawWebhook;
|
9
|
-
type: WebhookTypes;
|
10
|
-
guildId?: string | null;
|
11
|
-
channelId: string | null;
|
12
|
-
user?: User;
|
13
|
-
name: string | null;
|
14
|
-
avatar: string | null;
|
15
|
-
token?: string;
|
16
|
-
applicationId: string | null;
|
17
|
-
sourceGuild?: Guild;
|
18
|
-
sourceChannel?: Channel;
|
19
|
-
url?: string;
|
20
|
-
constructor(data: RawWebhook, client: Client);
|
21
|
-
protected patch(data: RawWebhook): void;
|
22
|
-
/** https://discord.com/developers/docs/resources/webhook#delete-webhook */
|
23
|
-
delete(reason?: string): void;
|
24
|
-
/** https://discord.com/developers/docs/resources/webhook#delete-webhook-message */
|
25
|
-
deleteMessage(messageId: string, options?: {
|
26
|
-
threadId?: string;
|
27
|
-
}): void;
|
28
|
-
/** https://discord.com/developers/docs/resources/webhook#delete-webhook-with-token */
|
29
|
-
deleteWithToken(reason?: string): void;
|
30
|
-
/** https://discord.com/developers/docs/resources/webhook#modify-webhook */
|
31
|
-
edit(options: {
|
32
|
-
name?: string;
|
33
|
-
avatar?: string | null;
|
34
|
-
channelId?: string;
|
35
|
-
}, reason?: string): Promise<Webhook>;
|
36
|
-
/** https://discord.com/developers/docs/resources/webhook#edit-webhook-message */
|
37
|
-
editMessage(messageId: string, options: {
|
38
|
-
threadId?: string;
|
39
|
-
content?: string | null;
|
40
|
-
embeds?: Array<JSONEmbed> | null;
|
41
|
-
flags?: MessageFlags | null;
|
42
|
-
allowedMentions?: JSONAllowedMentions | null;
|
43
|
-
components?: Array<JSONActionRow> | null;
|
44
|
-
files?: Array<File> | null;
|
45
|
-
attachments?: Array<JSONAttachment> | null;
|
46
|
-
}): Promise<Message>;
|
47
|
-
/** https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token */
|
48
|
-
editWithToken(options: {
|
49
|
-
name?: string;
|
50
|
-
avatar?: string | null;
|
51
|
-
}, reason?: string): Promise<Webhook>;
|
52
|
-
/** https://discord.com/developers/docs/resources/webhook#execute-webhook */
|
53
|
-
execute(options: {
|
54
|
-
wait?: boolean;
|
55
|
-
threadId?: string;
|
56
|
-
content?: string | null;
|
57
|
-
username?: string;
|
58
|
-
avatarURL?: string;
|
59
|
-
tts?: boolean;
|
60
|
-
embeds?: Array<JSONEmbed> | null;
|
61
|
-
allowedMentions?: JSONAllowedMentions | null;
|
62
|
-
components?: Array<JSONActionRow> | null;
|
63
|
-
files?: Array<File> | null;
|
64
|
-
attachments?: Array<JSONAttachment> | null;
|
65
|
-
flags?: MessageFlags | null;
|
66
|
-
threadName?: string;
|
67
|
-
}): Promise<Message | null>;
|
68
|
-
/**
|
69
|
-
* https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook
|
70
|
-
* https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook
|
71
|
-
*/
|
72
|
-
executePlatform(platform: "github" | "slack", options: Record<string, unknown> & {
|
73
|
-
threadId?: string;
|
74
|
-
wait?: boolean;
|
75
|
-
}): Promise<Message | null>;
|
76
|
-
/** https://discord.com/developers/docs/resources/webhook#get-webhook-message */
|
77
|
-
getMessage(messageId: string, options?: {
|
78
|
-
threadId?: string;
|
79
|
-
}): Promise<Message>;
|
80
|
-
toRaw(): RawWebhook;
|
81
|
-
toJSON(): JSONWebhook;
|
82
|
-
}
|
@@ -1,223 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Webhook = void 0;
|
4
|
-
const _1 = require(".");
|
5
|
-
const rest_1 = require("../rest");
|
6
|
-
/** https://discord.com/developers/docs/resources/webhook */
|
7
|
-
class Webhook extends _1.IdentifiableBase {
|
8
|
-
raw;
|
9
|
-
type;
|
10
|
-
guildId;
|
11
|
-
channelId;
|
12
|
-
user;
|
13
|
-
name;
|
14
|
-
avatar;
|
15
|
-
token;
|
16
|
-
applicationId;
|
17
|
-
sourceGuild;
|
18
|
-
sourceChannel;
|
19
|
-
url;
|
20
|
-
constructor(data, client) {
|
21
|
-
super(data.id, client);
|
22
|
-
this.raw = data;
|
23
|
-
this.type = data.type;
|
24
|
-
this.channelId = data.channel_id;
|
25
|
-
this.name = data.name;
|
26
|
-
this.avatar = data.avatar;
|
27
|
-
this.applicationId = data.application_id;
|
28
|
-
this.patch(data);
|
29
|
-
}
|
30
|
-
patch(data) {
|
31
|
-
if (data.guild_id !== undefined)
|
32
|
-
this.guildId = data.guild_id;
|
33
|
-
if (data.user !== undefined)
|
34
|
-
this.user = new _1.User(data.user, this.client);
|
35
|
-
if (data.token !== undefined)
|
36
|
-
this.token = data.token;
|
37
|
-
if (data.source_guild !== undefined)
|
38
|
-
this.sourceGuild = new _1.Guild(data.source_guild, this.client);
|
39
|
-
if (data.source_channel !== undefined)
|
40
|
-
this.sourceChannel = new _1.Channel(data.source_channel, this.client);
|
41
|
-
if (data.url !== undefined)
|
42
|
-
this.url = data.url;
|
43
|
-
}
|
44
|
-
/** https://discord.com/developers/docs/resources/webhook#delete-webhook */
|
45
|
-
delete(reason) {
|
46
|
-
this.client.rest.delete(rest_1.Endpoints.webhook(this.id), {
|
47
|
-
reason,
|
48
|
-
});
|
49
|
-
}
|
50
|
-
/** https://discord.com/developers/docs/resources/webhook#delete-webhook-message */
|
51
|
-
deleteMessage(messageId, options) {
|
52
|
-
if (!this.token)
|
53
|
-
throw new Error("[disgroove] Webhook token not found");
|
54
|
-
this.client.rest.delete(rest_1.Endpoints.webhookMessage(this.id, this.token, messageId), {
|
55
|
-
query: {
|
56
|
-
thread_id: options?.threadId,
|
57
|
-
},
|
58
|
-
});
|
59
|
-
}
|
60
|
-
/** https://discord.com/developers/docs/resources/webhook#delete-webhook-with-token */
|
61
|
-
deleteWithToken(reason) {
|
62
|
-
if (!this.token)
|
63
|
-
throw new Error("[disgroove] Webhook token not found");
|
64
|
-
this.client.rest.delete(rest_1.Endpoints.webhook(this.id, this.token), {
|
65
|
-
reason,
|
66
|
-
authorization: false,
|
67
|
-
});
|
68
|
-
}
|
69
|
-
/** https://discord.com/developers/docs/resources/webhook#modify-webhook */
|
70
|
-
async edit(options, reason) {
|
71
|
-
return new Webhook(await this.client.rest.patch(rest_1.Endpoints.webhook(this.id), {
|
72
|
-
json: {
|
73
|
-
name: options.name,
|
74
|
-
avatar: options.avatar,
|
75
|
-
channel_id: options.channelId,
|
76
|
-
},
|
77
|
-
reason,
|
78
|
-
}), this.client);
|
79
|
-
}
|
80
|
-
/** https://discord.com/developers/docs/resources/webhook#edit-webhook-message */
|
81
|
-
async editMessage(messageId, options) {
|
82
|
-
if (!this.token)
|
83
|
-
throw new Error("[disgroove] Webhook token not found");
|
84
|
-
return new _1.Message(await this.client.rest.patch(rest_1.Endpoints.webhookMessage(this.id, this.token, messageId), {
|
85
|
-
json: {
|
86
|
-
content: options.content,
|
87
|
-
embeds: options.embeds !== undefined
|
88
|
-
? options.embeds !== null
|
89
|
-
? this.client.util.embedsToRaw(options.embeds)
|
90
|
-
: null
|
91
|
-
: undefined,
|
92
|
-
allowed_mentions: {
|
93
|
-
parse: options.allowedMentions?.parse,
|
94
|
-
roles: options.allowedMentions?.roles,
|
95
|
-
users: options.allowedMentions?.users,
|
96
|
-
replied_user: options.allowedMentions?.repliedUser,
|
97
|
-
},
|
98
|
-
components: options.components !== undefined
|
99
|
-
? options.components !== null
|
100
|
-
? this.client.util.messageComponentsToRaw(options.components)
|
101
|
-
: null
|
102
|
-
: undefined,
|
103
|
-
attachments: options.attachments,
|
104
|
-
flags: options.flags,
|
105
|
-
},
|
106
|
-
files: options.files,
|
107
|
-
query: {
|
108
|
-
thread_id: options.threadId,
|
109
|
-
},
|
110
|
-
}), this.client);
|
111
|
-
}
|
112
|
-
/** https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token */
|
113
|
-
async editWithToken(options, reason) {
|
114
|
-
if (!this.token)
|
115
|
-
throw new Error("[disgroove] Webhook token not found");
|
116
|
-
return new Webhook(await this.client.rest.patch(rest_1.Endpoints.webhook(this.id, this.token), {
|
117
|
-
json: {
|
118
|
-
name: options.name,
|
119
|
-
avatar: options.avatar,
|
120
|
-
},
|
121
|
-
reason,
|
122
|
-
authorization: false,
|
123
|
-
}), this.client);
|
124
|
-
}
|
125
|
-
/** https://discord.com/developers/docs/resources/webhook#execute-webhook */
|
126
|
-
async execute(options) {
|
127
|
-
if (!this.token)
|
128
|
-
throw new Error("[disgroove] Webhook token not found");
|
129
|
-
return this.client.rest
|
130
|
-
.post(rest_1.Endpoints.webhook(this.id, this.token), {
|
131
|
-
json: {
|
132
|
-
content: options.content,
|
133
|
-
tts: options.tts,
|
134
|
-
embeds: options.embeds !== undefined
|
135
|
-
? options.embeds !== null
|
136
|
-
? this.client.util.embedsToRaw(options.embeds)
|
137
|
-
: null
|
138
|
-
: undefined,
|
139
|
-
allowed_mentions: {
|
140
|
-
parse: options.allowedMentions?.parse,
|
141
|
-
roles: options.allowedMentions?.roles,
|
142
|
-
users: options.allowedMentions?.users,
|
143
|
-
replied_user: options.allowedMentions?.repliedUser,
|
144
|
-
},
|
145
|
-
components: options.components !== undefined
|
146
|
-
? options.components !== null
|
147
|
-
? this.client.util.messageComponentsToRaw(options.components)
|
148
|
-
: null
|
149
|
-
: undefined,
|
150
|
-
attachments: options.attachments,
|
151
|
-
flags: options.flags,
|
152
|
-
thread_name: options.threadName,
|
153
|
-
},
|
154
|
-
files: options.files,
|
155
|
-
query: {
|
156
|
-
wait: options.wait,
|
157
|
-
thread_id: options.threadId,
|
158
|
-
username: options.username,
|
159
|
-
avatarURL: options.avatarURL,
|
160
|
-
},
|
161
|
-
})
|
162
|
-
.then((response) => {
|
163
|
-
if (response !== null) {
|
164
|
-
return new _1.Message(response, this.client);
|
165
|
-
}
|
166
|
-
else
|
167
|
-
return null;
|
168
|
-
});
|
169
|
-
}
|
170
|
-
/**
|
171
|
-
* https://discord.com/developers/docs/resources/webhook#execute-githubcompatible-webhook
|
172
|
-
* https://discord.com/developers/docs/resources/webhook#execute-slackcompatible-webhook
|
173
|
-
*/
|
174
|
-
async executePlatform(platform, options) {
|
175
|
-
if (!this.token)
|
176
|
-
throw new Error("[disgroove] Webhook token not found");
|
177
|
-
return this.client.rest
|
178
|
-
.post(rest_1.Endpoints.webhookPlatform(this.id, this.token, platform), {
|
179
|
-
query: {
|
180
|
-
thread_id: options.threadId,
|
181
|
-
wait: options.wait,
|
182
|
-
},
|
183
|
-
})
|
184
|
-
.then((response) => {
|
185
|
-
if (response !== null) {
|
186
|
-
return new _1.Message(response, this.client);
|
187
|
-
}
|
188
|
-
else
|
189
|
-
return null;
|
190
|
-
});
|
191
|
-
}
|
192
|
-
/** https://discord.com/developers/docs/resources/webhook#get-webhook-message */
|
193
|
-
async getMessage(messageId, options) {
|
194
|
-
if (!this.token)
|
195
|
-
throw new Error("[disgroove] Webhook token not found");
|
196
|
-
return new _1.Message(await this.client.rest.get(rest_1.Endpoints.webhookMessage(this.id, this.token, messageId), {
|
197
|
-
query: {
|
198
|
-
thread_id: options?.threadId,
|
199
|
-
},
|
200
|
-
}), this.client);
|
201
|
-
}
|
202
|
-
toRaw() {
|
203
|
-
return this.raw;
|
204
|
-
}
|
205
|
-
toJSON() {
|
206
|
-
return {
|
207
|
-
...super.toJSON(),
|
208
|
-
type: this.type,
|
209
|
-
guildId: this.guildId,
|
210
|
-
channelId: this.channelId,
|
211
|
-
user: this.user?.toJSON(),
|
212
|
-
name: this.name,
|
213
|
-
avatar: this.avatar,
|
214
|
-
token: this.token,
|
215
|
-
applicationId: this.applicationId,
|
216
|
-
sourceGuild: this.sourceGuild?.toJSON(),
|
217
|
-
sourceChannel: this.sourceChannel?.toJSON(),
|
218
|
-
url: this.url,
|
219
|
-
};
|
220
|
-
}
|
221
|
-
}
|
222
|
-
exports.Webhook = Webhook;
|
223
|
-
//# sourceMappingURL=Webhook.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../../lib/structures/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ACZ,CAAC;IACJ,CAAC;IAEQ,KAAK;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC;IAClB,CAAC;IAEQ,MAAM;QACb,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE;YACvC,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE;YAC3C,GAAG,EAAE,IAAI,CAAC,GAAG;SACd,CAAC;IACJ,CAAC;CACF;AApTD,0BAoTC"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
export * from "./Base";
|
2
|
-
export * from "./IdentifiableBase";
|
3
|
-
export * from "./Application";
|
4
|
-
export * from "./ApplicationCommand";
|
5
|
-
export * from "./AuditLog";
|
6
|
-
export * from "./AutoModerationRule";
|
7
|
-
export * from "./Channel";
|
8
|
-
export * from "./ClientApplication";
|
9
|
-
export * from "./Emoji";
|
10
|
-
export * from "./Entitlement";
|
11
|
-
export * from "./Guild";
|
12
|
-
export * from "./GuildMember";
|
13
|
-
export * from "./GuildScheduledEvent";
|
14
|
-
export * from "./GuildTemplate";
|
15
|
-
export * from "./Integration";
|
16
|
-
export * from "./Interaction";
|
17
|
-
export * from "./Invite";
|
18
|
-
export * from "./Message";
|
19
|
-
export * from "./Role";
|
20
|
-
export * from "./SKU";
|
21
|
-
export * from "./StageInstance";
|
22
|
-
export * from "./Sticker";
|
23
|
-
export * from "./Team";
|
24
|
-
export * from "./TestEntitlement";
|
25
|
-
export * from "./UnavailableGuild";
|
26
|
-
export * from "./User";
|
27
|
-
export * from "./VoiceState";
|
28
|
-
export * from "./Webhook";
|