disgroove 2.1.0-dev.968f27e → 2.1.0-dev.ad98d6b
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 +3 -1
- package/dist/lib/Client.js +7 -5
- package/dist/lib/constants.d.ts +12 -2
- package/dist/lib/constants.js +15 -4
- package/dist/lib/types/application-command.d.ts +5 -1
- package/dist/lib/types/channel.d.ts +21 -1
- package/dist/lib/types/gateway-events.d.ts +2 -0
- package/dist/lib/types/poll.d.ts +24 -18
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/Client.d.ts
CHANGED
@@ -247,6 +247,8 @@ export declare class Client extends EventEmitter {
|
|
247
247
|
}): Promise<Message>;
|
248
248
|
/** https://discord.com/developers/docs/resources/webhook#modify-webhook-with-token */
|
249
249
|
editWebhookWithToken(webhookId: string, webhookToken: string, options: Omit<EditWebhookParams, "channelId">, reason?: string): Promise<Webhook>;
|
250
|
+
/** https://discord.com/developers/docs/resources/poll#end-poll */
|
251
|
+
endPoll(channelId: string, messageId: string): Promise<Message>;
|
250
252
|
/** https://discord.com/developers/docs/resources/webhook#execute-webhook */
|
251
253
|
executeWebhook(webhookId: string, webhookToken: string, options: ExecuteWebhookParams & {
|
252
254
|
wait: boolean;
|
@@ -261,7 +263,6 @@ export declare class Client extends EventEmitter {
|
|
261
263
|
threadId?: string;
|
262
264
|
wait?: boolean;
|
263
265
|
}): Promise<Message | null>;
|
264
|
-
expirePoll(channelId: string, messageId: string): Promise<Message>;
|
265
266
|
/** https://discord.com/developers/docs/resources/channel#follow-announcement-channel */
|
266
267
|
followChannel(channelId: string, options: {
|
267
268
|
webhookChannelId: string;
|
@@ -479,6 +480,7 @@ export declare class Client extends EventEmitter {
|
|
479
480
|
}>;
|
480
481
|
/** https://discord.com/developers/docs/resources/channel#get-pinned-messages */
|
481
482
|
getPinnedMessages(channelId: string): Promise<Array<Message>>;
|
483
|
+
/** https://discord.com/developers/docs/resources/poll#get-answer-voters */
|
482
484
|
getPollAnswerVoters(channelId: string, messageId: string, answerId: string, options?: {
|
483
485
|
after?: string;
|
484
486
|
limit?: number;
|
package/dist/lib/Client.js
CHANGED
@@ -1244,6 +1244,12 @@ class Client extends node_events_1.default {
|
|
1244
1244
|
})
|
1245
1245
|
.then((response) => this.util.toCamelCase(response));
|
1246
1246
|
}
|
1247
|
+
/** https://discord.com/developers/docs/resources/poll#end-poll */
|
1248
|
+
endPoll(channelId, messageId) {
|
1249
|
+
return this.rest
|
1250
|
+
.request(rest_1.RESTMethods.Post, rest_1.Endpoints.pollExpire(channelId, messageId))
|
1251
|
+
.then((response) => this.util.toCamelCase(response));
|
1252
|
+
}
|
1247
1253
|
/** https://discord.com/developers/docs/resources/webhook#execute-webhook */
|
1248
1254
|
executeWebhook(webhookId, webhookToken, options) {
|
1249
1255
|
return this.rest
|
@@ -1300,11 +1306,6 @@ class Client extends node_events_1.default {
|
|
1300
1306
|
})
|
1301
1307
|
.then((response) => response !== null ? this.util.toCamelCase(response) : null);
|
1302
1308
|
}
|
1303
|
-
expirePoll(channelId, messageId) {
|
1304
|
-
return this.rest
|
1305
|
-
.request(rest_1.RESTMethods.Post, rest_1.Endpoints.pollExpire(channelId, messageId))
|
1306
|
-
.then((response) => this.util.toCamelCase(response));
|
1307
|
-
}
|
1308
1309
|
/** https://discord.com/developers/docs/resources/channel#follow-announcement-channel */
|
1309
1310
|
followChannel(channelId, options) {
|
1310
1311
|
return this.rest
|
@@ -1762,6 +1763,7 @@ class Client extends node_events_1.default {
|
|
1762
1763
|
.request(rest_1.RESTMethods.Get, rest_1.Endpoints.channelPins(channelId))
|
1763
1764
|
.then((response) => response.map((message) => this.util.toCamelCase(message)));
|
1764
1765
|
}
|
1766
|
+
/** https://discord.com/developers/docs/resources/poll#get-answer-voters */
|
1765
1767
|
getPollAnswerVoters(channelId, messageId, answerId, options) {
|
1766
1768
|
return this.rest
|
1767
1769
|
.request(rest_1.RESTMethods.Get, rest_1.Endpoints.pollAnswerVoters(channelId, messageId, answerId), {
|
package/dist/lib/constants.d.ts
CHANGED
@@ -76,6 +76,12 @@ export declare enum InteractionType {
|
|
76
76
|
ApplicationCommandAutocomplete = 4,
|
77
77
|
ModalSubmit = 5
|
78
78
|
}
|
79
|
+
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types */
|
80
|
+
export declare enum InterationContextTypes {
|
81
|
+
Guild = 0,
|
82
|
+
BotDM = 1,
|
83
|
+
PrivateChannel = 2
|
84
|
+
}
|
79
85
|
/** https://discord.com/developers/docs/interactions/message-components#component-object-component-types */
|
80
86
|
export declare enum ComponentTypes {
|
81
87
|
ActionRow = 1,
|
@@ -461,6 +467,7 @@ export declare enum InviteTargetTypes {
|
|
461
467
|
Stream = 1,
|
462
468
|
EmbeddedApplication = 2
|
463
469
|
}
|
470
|
+
/** https://discord.com/developers/docs/resources/poll#layout-type */
|
464
471
|
export declare enum LayoutType {
|
465
472
|
Default = 1
|
466
473
|
}
|
@@ -566,9 +573,11 @@ export declare enum GatewayIntents {
|
|
566
573
|
GuildScheduledEvents = 65536,
|
567
574
|
AutoModerationConfiguration = 1048576,
|
568
575
|
AutoModerationActionExecution = 2097152,
|
569
|
-
|
576
|
+
GuildMessagePolls = 16777216,
|
577
|
+
DirectMessagePolls = 33554432,
|
578
|
+
AllNonPrivileged = 53575421,
|
570
579
|
AllPrivileged = 33026,
|
571
|
-
All =
|
580
|
+
All = 53608447
|
572
581
|
}
|
573
582
|
/** https://discord.com/developers/docs/topics/gateway-events#update-presence-status-types */
|
574
583
|
export declare enum StatusTypes {
|
@@ -1068,6 +1077,7 @@ export declare const BitwisePermissionFlags: {
|
|
1068
1077
|
readonly CreateEvents: bigint;
|
1069
1078
|
readonly UseExternalSounds: bigint;
|
1070
1079
|
readonly SendVoiceMessages: bigint;
|
1080
|
+
readonly SendPolls: bigint;
|
1071
1081
|
};
|
1072
1082
|
/** https://discord.com/developers/docs/topics/permissions#role-object-role-flags */
|
1073
1083
|
export declare enum RoleFlags {
|
package/dist/lib/constants.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.EntitlementTypes = exports.SkuFlags = exports.SkuTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = void 0;
|
3
|
+
exports.StickerTypes = exports.PrivacyLevel = exports.LayoutType = exports.InviteTargetTypes = exports.GuildScheduledEventStatus = exports.GuildScheduledEventEntityTypes = exports.GuildScheduledEventPrivacyLevel = exports.ImageWidgetStyleOptions = exports.PromptTypes = exports.OnboardingMode = exports.IntegrationExpireBehaviors = exports.GuildMemberFlags = exports.MutableGuildFeatures = exports.GuildFeatures = exports.SystemChannelFlags = exports.PremiumTier = exports.GuildNSFWLevel = exports.VerificationLevel = exports.MFALevel = exports.ExplicitContentFilterLevel = exports.DefaultMessageNotificationLevel = exports.AllowedMentionTypes = exports.AttachmentFlags = exports.MessageFlags = exports.MessageActivityTypes = exports.MessageTypes = exports.ForumLayoutTypes = exports.SortOrderTypes = exports.ChannelFlags = exports.VideoQualityModes = exports.ChannelTypes = exports.ActionTypes = exports.EventTypes = exports.KeywordPresetTypes = exports.TriggerTypes = exports.AuditLogEvents = exports.ApplicationRoleConnectionMetadataType = exports.ApplicationFlags = exports.ApplicationIntegrationTypes = exports.TextInputStyles = exports.ButtonStyles = exports.InteractionCallbackType = exports.ComponentTypes = exports.InterationContextTypes = exports.InteractionType = exports.ApplicationCommandPermissionType = exports.ApplicationCommandOptionType = exports.ApplicationCommandTypes = exports.Locales = exports.ImageFormats = void 0;
|
4
|
+
exports.EntitlementTypes = exports.SkuFlags = exports.SkuTypes = exports.MembershipState = exports.TeamMemberRoleTypes = exports.RoleFlags = exports.BitwisePermissionFlags = exports.RPCCloseEventCodes = exports.RPCErrorCodes = exports.JSONErrorCodes = exports.HTTPResponseCodes = exports.VoiceCloseEventCodes = exports.VoiceOPCodes = exports.GatewayCloseEventCodes = exports.GatewayOPCodes = exports.OAuth2Scopes = exports.ActivityFlags = exports.ActivityType = exports.GatewayEvents = exports.StatusTypes = exports.GatewayIntents = exports.DeviceType = exports.WebhookTypes = exports.VisibilityTypes = exports.Services = exports.PremiumTypes = exports.UserFlags = exports.StickerFormatTypes = void 0;
|
5
5
|
/** https://discord.com/developers/docs/reference#image-formatting-image-formats */
|
6
6
|
var ImageFormats;
|
7
7
|
(function (ImageFormats) {
|
@@ -86,6 +86,13 @@ var InteractionType;
|
|
86
86
|
InteractionType[InteractionType["ApplicationCommandAutocomplete"] = 4] = "ApplicationCommandAutocomplete";
|
87
87
|
InteractionType[InteractionType["ModalSubmit"] = 5] = "ModalSubmit";
|
88
88
|
})(InteractionType || (exports.InteractionType = InteractionType = {}));
|
89
|
+
/** https://discord.com/developers/docs/interactions/receiving-and-responding#interaction-object-interaction-context-types */
|
90
|
+
var InterationContextTypes;
|
91
|
+
(function (InterationContextTypes) {
|
92
|
+
InterationContextTypes[InterationContextTypes["Guild"] = 0] = "Guild";
|
93
|
+
InterationContextTypes[InterationContextTypes["BotDM"] = 1] = "BotDM";
|
94
|
+
InterationContextTypes[InterationContextTypes["PrivateChannel"] = 2] = "PrivateChannel";
|
95
|
+
})(InterationContextTypes || (exports.InterationContextTypes = InterationContextTypes = {}));
|
89
96
|
/** https://discord.com/developers/docs/interactions/message-components#component-object-component-types */
|
90
97
|
var ComponentTypes;
|
91
98
|
(function (ComponentTypes) {
|
@@ -511,6 +518,7 @@ var InviteTargetTypes;
|
|
511
518
|
InviteTargetTypes[InviteTargetTypes["Stream"] = 1] = "Stream";
|
512
519
|
InviteTargetTypes[InviteTargetTypes["EmbeddedApplication"] = 2] = "EmbeddedApplication";
|
513
520
|
})(InviteTargetTypes || (exports.InviteTargetTypes = InviteTargetTypes = {}));
|
521
|
+
/** https://discord.com/developers/docs/resources/poll#layout-type */
|
514
522
|
var LayoutType;
|
515
523
|
(function (LayoutType) {
|
516
524
|
LayoutType[LayoutType["Default"] = 1] = "Default";
|
@@ -627,9 +635,11 @@ var GatewayIntents;
|
|
627
635
|
GatewayIntents[GatewayIntents["GuildScheduledEvents"] = 65536] = "GuildScheduledEvents";
|
628
636
|
GatewayIntents[GatewayIntents["AutoModerationConfiguration"] = 1048576] = "AutoModerationConfiguration";
|
629
637
|
GatewayIntents[GatewayIntents["AutoModerationActionExecution"] = 2097152] = "AutoModerationActionExecution";
|
630
|
-
GatewayIntents[GatewayIntents["
|
638
|
+
GatewayIntents[GatewayIntents["GuildMessagePolls"] = 16777216] = "GuildMessagePolls";
|
639
|
+
GatewayIntents[GatewayIntents["DirectMessagePolls"] = 33554432] = "DirectMessagePolls";
|
640
|
+
GatewayIntents[GatewayIntents["AllNonPrivileged"] = 53575421] = "AllNonPrivileged";
|
631
641
|
GatewayIntents[GatewayIntents["AllPrivileged"] = 33026] = "AllPrivileged";
|
632
|
-
GatewayIntents[GatewayIntents["All"] =
|
642
|
+
GatewayIntents[GatewayIntents["All"] = 53608447] = "All";
|
633
643
|
})(GatewayIntents || (exports.GatewayIntents = GatewayIntents = {}));
|
634
644
|
/** https://discord.com/developers/docs/topics/gateway-events#update-presence-status-types */
|
635
645
|
var StatusTypes;
|
@@ -1142,6 +1152,7 @@ exports.BitwisePermissionFlags = {
|
|
1142
1152
|
CreateEvents: 1n << 44n,
|
1143
1153
|
UseExternalSounds: 1n << 45n,
|
1144
1154
|
SendVoiceMessages: 1n << 46n,
|
1155
|
+
SendPolls: 1n << 49n,
|
1145
1156
|
};
|
1146
1157
|
/** https://discord.com/developers/docs/topics/permissions#role-object-role-flags */
|
1147
1158
|
var RoleFlags;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { LocaleMap } from ".";
|
2
|
-
import type { ApplicationCommandTypes, ApplicationCommandOptionType, ChannelTypes, ApplicationCommandPermissionType } from "../constants";
|
2
|
+
import type { ApplicationCommandTypes, ApplicationCommandOptionType, ChannelTypes, ApplicationCommandPermissionType, ApplicationIntegrationTypes, InterationContextTypes } from "../constants";
|
3
3
|
/** https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure */
|
4
4
|
export interface RawApplicationCommand {
|
5
5
|
id: string;
|
@@ -14,6 +14,8 @@ export interface RawApplicationCommand {
|
|
14
14
|
default_member_permissions: string | null;
|
15
15
|
dm_permission?: boolean;
|
16
16
|
default_permission?: boolean | null;
|
17
|
+
integration_types?: Array<ApplicationIntegrationTypes>;
|
18
|
+
contexts?: Array<InterationContextTypes>;
|
17
19
|
nsfw?: boolean;
|
18
20
|
version: string;
|
19
21
|
}
|
@@ -66,6 +68,8 @@ export interface ApplicationCommand {
|
|
66
68
|
defaultMemberPermissions: string | null;
|
67
69
|
dmPermission?: boolean;
|
68
70
|
defaultPermission?: boolean | null;
|
71
|
+
integrationTypes?: Array<ApplicationIntegrationTypes>;
|
72
|
+
contexts?: Array<InterationContextTypes>;
|
69
73
|
nsfw?: boolean;
|
70
74
|
version: string;
|
71
75
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { AllowedMentionTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, InviteTargetTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
|
1
|
+
import type { AllowedMentionTypes, ApplicationIntegrationTypes, AttachmentFlags, ChannelFlags, ChannelTypes, ForumLayoutTypes, InteractionType, InviteTargetTypes, MessageActivityTypes, MessageFlags, MessageTypes, SortOrderTypes, VideoQualityModes } from "../constants";
|
2
2
|
import type { RawApplication, RawGuildMember, RawUser, RawEmoji, RawSticker, RawStickerItem, RawMessageInteraction, MessageInteraction, StickerItem, Sticker, Emoji, User, Application, GuildMember, RawActionRow, ActionRow, RawResolvedData, ResolvedData, RawPollCreateParams, PollCreateParams } from ".";
|
3
3
|
import type { File } from "../rest";
|
4
4
|
/** https://discord.com/developers/docs/resources/channel#channel-object-channel-structure */
|
@@ -65,6 +65,7 @@ export interface RawMessage {
|
|
65
65
|
message_reference?: RawMessageReference;
|
66
66
|
flags?: MessageFlags;
|
67
67
|
referenced_message?: RawMessage | null;
|
68
|
+
interaction_metadata?: RawMessageInteractionMetadata;
|
68
69
|
interaction?: RawMessageInteraction;
|
69
70
|
thread?: RawChannel;
|
70
71
|
components?: Array<RawActionRow>;
|
@@ -80,6 +81,16 @@ export interface RawMessageActivity {
|
|
80
81
|
type: MessageActivityTypes;
|
81
82
|
party_id?: string;
|
82
83
|
}
|
84
|
+
/** https://discord.com/developers/docs/resources/channel#message-interaction-metadata-object-message-interaction-metadata-structure */
|
85
|
+
export interface RawMessageInteractionMetadata {
|
86
|
+
id: string;
|
87
|
+
type: InteractionType;
|
88
|
+
user: RawUser;
|
89
|
+
authorizing_integration_owners: Record<ApplicationIntegrationTypes, string>;
|
90
|
+
original_response_message_id?: string;
|
91
|
+
interacted_message_id?: string;
|
92
|
+
triggering_interaction_metadata?: RawMessageInteractionMetadata;
|
93
|
+
}
|
83
94
|
/** https://discord.com/developers/docs/resources/channel#message-reference-object-message-reference-structure */
|
84
95
|
export interface RawMessageReference {
|
85
96
|
message_id?: string;
|
@@ -303,6 +314,7 @@ export interface Message {
|
|
303
314
|
messageReference?: MessageReference;
|
304
315
|
flags?: MessageFlags;
|
305
316
|
referencedMessage?: Message | null;
|
317
|
+
interactionMetadata?: MessageInteractionMetadata;
|
306
318
|
interaction?: MessageInteraction;
|
307
319
|
thread?: Channel;
|
308
320
|
components?: Array<ActionRow>;
|
@@ -317,6 +329,14 @@ export interface MessageActivity {
|
|
317
329
|
type: MessageActivityTypes;
|
318
330
|
partyId?: string;
|
319
331
|
}
|
332
|
+
export interface MessageInteractionMetadata {
|
333
|
+
id: string;
|
334
|
+
type: InteractionType;
|
335
|
+
user: User;
|
336
|
+
authorizingIntegrationOwners: Record<ApplicationIntegrationTypes, string>;
|
337
|
+
originalResponseMessageId?: string;
|
338
|
+
interactedMessageId?: string;
|
339
|
+
}
|
320
340
|
export interface MessageReference {
|
321
341
|
messageId?: string;
|
322
342
|
channelId?: string;
|
@@ -257,6 +257,7 @@ export interface RawVoiceServerUpdateEventFields {
|
|
257
257
|
guild_id: string;
|
258
258
|
endpoint: string | null;
|
259
259
|
}
|
260
|
+
/** https://discord.com/developers/docs/topics/gateway-events#message-poll-vote-add-message-poll-vote-add-fields */
|
260
261
|
export interface RawMessagePollVoteAddFields {
|
261
262
|
user_id: string;
|
262
263
|
channel_id: string;
|
@@ -264,6 +265,7 @@ export interface RawMessagePollVoteAddFields {
|
|
264
265
|
guild_id?: string;
|
265
266
|
answer_id: number;
|
266
267
|
}
|
268
|
+
/** https://discord.com/developers/docs/topics/gateway-events#message-poll-vote-remove */
|
267
269
|
export interface RawMessagePollVoteRemoveFields {
|
268
270
|
user_id: string;
|
269
271
|
channel_id: string;
|
package/dist/lib/types/poll.d.ts
CHANGED
@@ -1,44 +1,57 @@
|
|
1
1
|
import type { LayoutType } from "../constants";
|
2
2
|
import type { Emoji, RawEmoji } from "./emoji";
|
3
|
+
/** https://discord.com/developers/docs/resources/poll#poll-object-poll-object-structure */
|
3
4
|
export interface RawPoll {
|
4
5
|
question: RawPollMedia;
|
5
6
|
answers: Array<RawPollAnswer>;
|
6
|
-
expiry: string;
|
7
|
+
expiry: string | null;
|
7
8
|
allow_multiselect: boolean;
|
8
9
|
layout_type: LayoutType;
|
9
|
-
results
|
10
|
+
results?: RawPollResults;
|
10
11
|
}
|
12
|
+
/** https://discord.com/developers/docs/resources/poll#poll-create-request-object-poll-create-request-object-structure */
|
13
|
+
export interface RawPollCreateParams {
|
14
|
+
question: RawPollMedia;
|
15
|
+
answers: Array<RawPollAnswer>;
|
16
|
+
duration: number;
|
17
|
+
allow_multiselect: boolean;
|
18
|
+
layout_type?: LayoutType;
|
19
|
+
}
|
20
|
+
/** https://discord.com/developers/docs/resources/poll#poll-media-object-poll-media-object-structure */
|
11
21
|
export interface RawPollMedia {
|
12
22
|
text?: string;
|
13
23
|
emoji?: Pick<RawEmoji, "id" | "name">;
|
14
24
|
}
|
25
|
+
/** https://discord.com/developers/docs/resources/poll#poll-answer-object-poll-answer-object-structure */
|
15
26
|
export interface RawPollAnswer {
|
16
27
|
answer_id: number;
|
17
28
|
poll_media: RawPollMedia;
|
18
29
|
}
|
30
|
+
/** https://discord.com/developers/docs/resources/poll#poll-results-object-poll-results-object-structure */
|
19
31
|
export interface RawPollResults {
|
20
32
|
is_finalized: boolean;
|
21
33
|
answer_counts: Array<RawPollAnswerCount>;
|
22
34
|
}
|
35
|
+
/** https://discord.com/developers/docs/resources/poll#poll-results-object-poll-answer-count-object-structure */
|
23
36
|
export interface RawPollAnswerCount {
|
24
37
|
id: number;
|
25
38
|
count: number;
|
26
39
|
me_voted: boolean;
|
27
40
|
}
|
28
|
-
export interface RawPollCreateParams {
|
29
|
-
question: RawPollMedia;
|
30
|
-
answers: Array<RawPollAnswer>;
|
31
|
-
duration: number;
|
32
|
-
allow_multiselect: boolean;
|
33
|
-
layout_type?: LayoutType;
|
34
|
-
}
|
35
41
|
export interface Poll {
|
36
42
|
question: PollMedia;
|
37
43
|
answers: Array<PollAnswer>;
|
38
|
-
expiry: string;
|
44
|
+
expiry: string | null;
|
39
45
|
allowMultiselect: boolean;
|
40
46
|
layoutType: LayoutType;
|
41
|
-
results
|
47
|
+
results?: PollResults;
|
48
|
+
}
|
49
|
+
export interface PollCreateParams {
|
50
|
+
question: PollMedia;
|
51
|
+
answers: Array<PollAnswer>;
|
52
|
+
duration: number;
|
53
|
+
allowMultiselect: boolean;
|
54
|
+
layoutType?: LayoutType;
|
42
55
|
}
|
43
56
|
export interface PollMedia {
|
44
57
|
text?: string;
|
@@ -57,10 +70,3 @@ export interface PollAnswerCount {
|
|
57
70
|
count: number;
|
58
71
|
meVoted: boolean;
|
59
72
|
}
|
60
|
-
export interface PollCreateParams {
|
61
|
-
question: PollMedia;
|
62
|
-
answers: Array<PollAnswer>;
|
63
|
-
duration: number;
|
64
|
-
allowMultiselect: boolean;
|
65
|
-
layoutType?: LayoutType;
|
66
|
-
}
|
package/dist/package.json
CHANGED