disgroove 2.1.0-dev.968f27e → 2.1.0-dev.bb8ed97
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.js +0 -10
- package/dist/lib/types/channel.d.ts +5 -4
- package/dist/lib/types/index.d.ts +0 -1
- package/dist/lib/types/index.js +0 -1
- package/dist/lib/types/interaction.d.ts +4 -3
- package/dist/lib/types/poll.d.ts +0 -14
- package/dist/lib/types/webhook.d.ts +3 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/Client.js
CHANGED
@@ -436,9 +436,6 @@ class Client extends node_events_1.default {
|
|
436
436
|
? this.util.toSnakeCase(options.data.components)
|
437
437
|
: undefined,
|
438
438
|
attachments: options.data?.attachments?.map((attachment) => this.util.toSnakeCase(attachment)),
|
439
|
-
poll: options.data?.poll !== undefined
|
440
|
-
? this.util.toSnakeCase(options.data?.poll)
|
441
|
-
: undefined,
|
442
439
|
},
|
443
440
|
},
|
444
441
|
files: options.data?.files,
|
@@ -520,9 +517,6 @@ class Client extends node_events_1.default {
|
|
520
517
|
attachments: options.attachments?.map((attachment) => this.util.toSnakeCase(attachment)),
|
521
518
|
flags: options.flags,
|
522
519
|
enforce_nonce: options.enforceNonce,
|
523
|
-
poll: options.poll !== undefined
|
524
|
-
? this.util.toSnakeCase(options.poll)
|
525
|
-
: undefined,
|
526
520
|
},
|
527
521
|
files: options.files,
|
528
522
|
})
|
@@ -1271,10 +1265,6 @@ class Client extends node_events_1.default {
|
|
1271
1265
|
attachments: options.attachments?.map((attachment) => this.util.toSnakeCase(attachment)),
|
1272
1266
|
flags: options.flags,
|
1273
1267
|
thread_name: options.threadName,
|
1274
|
-
applied_tags: options.appliedTags,
|
1275
|
-
poll: options.poll !== undefined
|
1276
|
-
? this.util.toSnakeCase(options.poll)
|
1277
|
-
: undefined,
|
1278
1268
|
},
|
1279
1269
|
files: options.files,
|
1280
1270
|
query: {
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { AllowedMentionTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, InviteTargetTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
|
2
|
-
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, MessageInteraction, StickerItem, Sticker, Emoji, User, Application, GuildMember, RawActionRow, ActionRow, RawResolvedData, ResolvedData
|
2
|
+
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, MessageInteraction, StickerItem, Sticker, Emoji, User, Application, GuildMember, RawActionRow, ActionRow, RawResolvedData, ResolvedData } from ".";
|
3
3
|
import type { File } from "../rest";
|
4
|
+
import type { Poll, RawPoll } from "./poll";
|
4
5
|
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
|
5
6
|
export interface RawChannel {
|
6
7
|
id: string;
|
@@ -73,7 +74,7 @@ export interface RawMessage {
|
|
73
74
|
position?: number;
|
74
75
|
role_subscription_data?: RawRoleSubscriptionData;
|
75
76
|
resolved?: RawResolvedData;
|
76
|
-
poll?:
|
77
|
+
poll?: RawPoll;
|
77
78
|
}
|
78
79
|
/** https://discord.com/developers/docs/resources/channel#message-object-message-activity-structure */
|
79
80
|
export interface RawMessageActivity {
|
@@ -311,7 +312,7 @@ export interface Message {
|
|
311
312
|
position?: number;
|
312
313
|
roleSubscriptionData?: RoleSubscriptionData;
|
313
314
|
resolved?: ResolvedData;
|
314
|
-
poll?:
|
315
|
+
poll?: Poll;
|
315
316
|
}
|
316
317
|
export interface MessageActivity {
|
317
318
|
type: MessageActivityTypes;
|
@@ -497,7 +498,7 @@ export interface CreateMessageParams {
|
|
497
498
|
attachments?: Array<Attachment>;
|
498
499
|
flags?: MessageFlags;
|
499
500
|
enforceNonce?: boolean;
|
500
|
-
poll?:
|
501
|
+
poll?: Poll;
|
501
502
|
}
|
502
503
|
export interface EditMessageParams {
|
503
504
|
content?: string | null;
|
package/dist/lib/types/index.js
CHANGED
@@ -29,7 +29,6 @@ __exportStar(require("./guild"), exports);
|
|
29
29
|
__exportStar(require("./interaction"), exports);
|
30
30
|
__exportStar(require("./invite"), exports);
|
31
31
|
__exportStar(require("./message-components"), exports);
|
32
|
-
__exportStar(require("./poll"), exports);
|
33
32
|
__exportStar(require("./role"), exports);
|
34
33
|
__exportStar(require("./sku"), exports);
|
35
34
|
__exportStar(require("./stage-instance"), exports);
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, Attachment, User, GuildMember, Message, Role, Channel, Entitlement, RawEntitlement, RawEmbed, RawAllowedMentions, RawActionRow, RawApplicationCommandOptionChoice, Embed, AllowedMentions, ActionRow, ApplicationCommandOptionChoice, RawTextInput, TextInput, ExecuteWebhookParams
|
1
|
+
import type { RawAttachment, RawChannel, RawGuildMember, RawMessage, RawUser, RawRole, Attachment, User, GuildMember, Message, Role, Channel, Entitlement, RawEntitlement, RawEmbed, RawAllowedMentions, RawActionRow, RawApplicationCommandOptionChoice, Embed, AllowedMentions, ActionRow, ApplicationCommandOptionChoice, RawTextInput, TextInput, ExecuteWebhookParams } from ".";
|
2
2
|
import type { ApplicationCommandOptionType, ApplicationCommandTypes, ComponentTypes, InteractionCallbackType, InteractionType, MessageFlags } from "../constants";
|
3
3
|
import type { File } from "../rest";
|
4
|
+
import type { Poll, RawPoll } from "./poll";
|
4
5
|
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-structure */
|
5
6
|
export interface RawInteraction {
|
6
7
|
id: string;
|
@@ -84,7 +85,7 @@ export interface RawInteractionCallbackData {
|
|
84
85
|
flags?: MessageFlags;
|
85
86
|
components?: Array<RawActionRow>;
|
86
87
|
attachments?: Array<RawAttachment>;
|
87
|
-
poll?:
|
88
|
+
poll?: RawPoll;
|
88
89
|
files?: Array<File>;
|
89
90
|
choices?: Array<RawApplicationCommandOptionChoice>;
|
90
91
|
custom_id?: string;
|
@@ -164,7 +165,7 @@ export interface InteractionCallbackData {
|
|
164
165
|
flags?: MessageFlags;
|
165
166
|
components?: Array<ActionRow>;
|
166
167
|
attachments?: Array<Attachment>;
|
167
|
-
poll?:
|
168
|
+
poll?: Poll;
|
168
169
|
files?: Array<File>;
|
169
170
|
choices?: Array<ApplicationCommandOptionChoice>;
|
170
171
|
customId?: string;
|
package/dist/lib/types/poll.d.ts
CHANGED
@@ -25,13 +25,6 @@ export interface RawPollAnswerCount {
|
|
25
25
|
count: number;
|
26
26
|
me_voted: boolean;
|
27
27
|
}
|
28
|
-
export interface RawPollCreateParams {
|
29
|
-
question: RawPollMedia;
|
30
|
-
answers: Array<RawPollAnswer>;
|
31
|
-
duration: number;
|
32
|
-
allow_multiselect: boolean;
|
33
|
-
layout_type?: LayoutType;
|
34
|
-
}
|
35
28
|
export interface Poll {
|
36
29
|
question: PollMedia;
|
37
30
|
answers: Array<PollAnswer>;
|
@@ -57,10 +50,3 @@ export interface PollAnswerCount {
|
|
57
50
|
count: number;
|
58
51
|
meVoted: boolean;
|
59
52
|
}
|
60
|
-
export interface PollCreateParams {
|
61
|
-
question: PollMedia;
|
62
|
-
answers: Array<PollAnswer>;
|
63
|
-
duration: number;
|
64
|
-
allowMultiselect: boolean;
|
65
|
-
layoutType?: LayoutType;
|
66
|
-
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import type { MessageFlags, WebhookTypes } from "../constants";
|
2
|
-
import type { ActionRow, AllowedMentions, Attachment, Channel, Embed, Guild, User, RawChannel, RawGuild, RawUser
|
2
|
+
import type { ActionRow, AllowedMentions, Attachment, Channel, Embed, Guild, User, RawChannel, RawGuild, RawUser } from ".";
|
3
3
|
import type { File } from "../rest";
|
4
|
+
import type { Poll } from "./poll";
|
4
5
|
/** https://discord.com/developers/docs/resources/webhook#webhook-object-webhook-structure */
|
5
6
|
export interface RawWebhook {
|
6
7
|
id: string;
|
@@ -52,7 +53,7 @@ export interface ExecuteWebhookParams {
|
|
52
53
|
flags?: MessageFlags | null;
|
53
54
|
threadName?: string;
|
54
55
|
appliedTags?: Array<string>;
|
55
|
-
poll?:
|
56
|
+
poll?: Poll;
|
56
57
|
}
|
57
58
|
export interface EditWebhookMessageParams {
|
58
59
|
content?: string | null;
|
package/dist/package.json
CHANGED