@discordeno/bot 19.0.0-next.e19eca5 → 19.0.0-next.e2d86ea
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/bot.d.ts +3 -1
- package/dist/bot.d.ts.map +1 -1
- package/dist/bot.js +5 -0
- package/dist/bot.js.map +1 -1
- package/dist/handlers/channels/index.d.ts +1 -0
- package/dist/handlers/channels/index.d.ts.map +1 -1
- package/dist/handlers/channels/index.js +1 -0
- package/dist/handlers/channels/index.js.map +1 -1
- package/dist/helpers.d.ts +205 -0
- package/dist/helpers.d.ts.map +1 -0
- package/dist/helpers.js +553 -0
- package/dist/helpers.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/transformers/activity.d.ts +15 -15
- package/dist/transformers/application.d.ts +3 -3
- package/dist/transformers/applicationCommand.d.ts +3 -3
- package/dist/transformers/applicationCommandPermission.d.ts +1 -1
- package/dist/transformers/attachment.d.ts +3 -3
- package/dist/transformers/auditLogEntry.d.ts +6 -6
- package/dist/transformers/automodActionExecution.d.ts +5 -5
- package/dist/transformers/channel.d.ts +3 -3
- package/dist/transformers/channel.d.ts.map +1 -1
- package/dist/transformers/channel.js +2 -1
- package/dist/transformers/channel.js.map +1 -1
- package/dist/transformers/embed.d.ts +3 -3
- package/dist/transformers/emoji.d.ts +4 -4
- package/dist/transformers/guild.d.ts +1 -1
- package/dist/transformers/index.d.ts +2 -0
- package/dist/transformers/index.d.ts.map +1 -1
- package/dist/transformers/index.js +2 -0
- package/dist/transformers/index.js.map +1 -1
- package/dist/transformers/integration.d.ts +7 -7
- package/dist/transformers/interaction.d.ts +10 -1
- package/dist/transformers/interaction.d.ts.map +1 -1
- package/dist/transformers/interaction.js +26 -1
- package/dist/transformers/interaction.js.map +1 -1
- package/dist/transformers/invite.d.ts +13 -13
- package/dist/transformers/member.d.ts +2 -2
- package/dist/transformers/member.d.ts.map +1 -1
- package/dist/transformers/member.js +2 -2
- package/dist/transformers/member.js.map +1 -1
- package/dist/transformers/presence.d.ts +1 -1
- package/dist/transformers/reverse/index.d.ts +3 -0
- package/dist/transformers/reverse/index.d.ts.map +1 -1
- package/dist/transformers/reverse/index.js +3 -0
- package/dist/transformers/reverse/index.js.map +1 -1
- package/dist/transformers/role.d.ts +2 -2
- package/dist/transformers/role.d.ts.map +1 -1
- package/dist/transformers/role.js +1 -1
- package/dist/transformers/role.js.map +1 -1
- package/dist/transformers/scheduledEvent.d.ts +5 -5
- package/dist/transformers/sticker.d.ts +5 -5
- package/dist/transformers/template.d.ts +93 -93
- package/dist/transformers/toggles/index.d.ts +2 -0
- package/dist/transformers/toggles/index.d.ts.map +1 -1
- package/dist/transformers/toggles/index.js +2 -0
- package/dist/transformers/toggles/index.js.map +1 -1
- package/dist/transformers/voiceRegion.d.ts +1 -1
- package/dist/transformers/voiceState.d.ts +2 -2
- package/dist/transformers/webhook.d.ts +6 -6
- package/dist/transformers.d.ts +3 -3
- package/dist/transformers.d.ts.map +1 -1
- package/dist/transformers.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/transformers/role.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../src/transformers/role.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAoB,KAAK,GAAG,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAuC/C,wBAAgB,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAA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AqD;QACrD,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,sDAAsD;QACtD,qBAAqB,CAAC,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gBAAgB;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,yBAAyB;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -37,7 +37,7 @@ export function transformRole(bot, payload) {
|
|
|
37
37
|
if (payload.role.id && props.id) role.id = bot.transformers.snowflake(payload.role.id);
|
|
38
38
|
if (payload.role.name && props.name) role.name = payload.role.name;
|
|
39
39
|
if (props.position) role.position = payload.role.position;
|
|
40
|
-
if (props.guildId && payload.guildId) role.guildId = payload.guildId;
|
|
40
|
+
if (props.guildId && payload.guildId) role.guildId = bot.transformers.snowflake(payload.guildId);
|
|
41
41
|
if (props.color && payload.role.color) role.color = payload.role.color;
|
|
42
42
|
if (payload.role.permissions && props.permissions) role.permissions = new Permissions(payload.role.permissions);
|
|
43
43
|
if (payload.role.icon && props.icon) role.icon = iconHashToBigInt(payload.role.icon);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/transformers/role.ts"],"sourcesContent":["import type { DiscordRole } from '@discordeno/types'\nimport { iconHashToBigInt, type Bot } from '../index.js'\nimport { Permissions } from './toggles/Permissions.js'\nimport { RoleToggles } from './toggles/role.js'\n\nconst baseRole: Partial<Role> & BaseRole = {\n get tags() {\n return {\n botId: this.internalTags?.botId,\n integrationId: this.internalTags?.integrationId,\n subscriptionListingId: this.internalTags?.subscriptionListingId,\n availableForPurchase: this.toggles?.availableForPurchase,\n guildConnections: this.toggles?.guildConnections,\n premiumSubscriber: this.toggles?.premiumSubscriber,\n }\n },\n /** If this role is showed separately in the user listing */\n get hoist() {\n return !!this.toggles?.has('hoist')\n },\n /** Whether this role is managed by an integration */\n get managed() {\n return !!this.toggles?.has('managed')\n },\n /** Whether this role is mentionable */\n get mentionable() {\n return !!this.toggles?.has('mentionable')\n },\n /** Whether this is the guilds premium subscriber role */\n get premiumSubscriber() {\n return !!this.toggles?.has('premiumSubscriber')\n },\n /** Whether this role is available for purchase. */\n get availableForPurchase() {\n return !!this.toggles?.has('availableForPurchase');\n },\n /** Whether this is a guild's linked role. */\n get guildConnections() {\n return !!this.toggles?.has('guildConnections');\n },\n}\n\nexport function transformRole(bot: Bot, payload: { role: DiscordRole } & { guildId:
|
|
1
|
+
{"version":3,"sources":["../../src/transformers/role.ts"],"sourcesContent":["import type { BigString, DiscordRole } from '@discordeno/types'\nimport { iconHashToBigInt, type Bot } from '../index.js'\nimport { Permissions } from './toggles/Permissions.js'\nimport { RoleToggles } from './toggles/role.js'\n\nconst baseRole: Partial<Role> & BaseRole = {\n get tags() {\n return {\n botId: this.internalTags?.botId,\n integrationId: this.internalTags?.integrationId,\n subscriptionListingId: this.internalTags?.subscriptionListingId,\n availableForPurchase: this.toggles?.availableForPurchase,\n guildConnections: this.toggles?.guildConnections,\n premiumSubscriber: this.toggles?.premiumSubscriber,\n }\n },\n /** If this role is showed separately in the user listing */\n get hoist() {\n return !!this.toggles?.has('hoist')\n },\n /** Whether this role is managed by an integration */\n get managed() {\n return !!this.toggles?.has('managed')\n },\n /** Whether this role is mentionable */\n get mentionable() {\n return !!this.toggles?.has('mentionable')\n },\n /** Whether this is the guilds premium subscriber role */\n get premiumSubscriber() {\n return !!this.toggles?.has('premiumSubscriber')\n },\n /** Whether this role is available for purchase. */\n get availableForPurchase() {\n return !!this.toggles?.has('availableForPurchase');\n },\n /** Whether this is a guild's linked role. */\n get guildConnections() {\n return !!this.toggles?.has('guildConnections');\n },\n}\n\nexport function transformRole(bot: Bot, payload: { role: DiscordRole } & { guildId: BigString }): Role {\n const role: Role = Object.create(baseRole)\n const props = bot.transformers.desiredProperties.role\n if (payload.role.id && props.id) role.id = bot.transformers.snowflake(payload.role.id)\n if (payload.role.name && props.name) role.name = payload.role.name\n if (props.position) role.position = payload.role.position\n if (props.guildId && payload.guildId) role.guildId = bot.transformers.snowflake(payload.guildId)\n if (props.color && payload.role.color) role.color = payload.role.color\n if (payload.role.permissions && props.permissions) role.permissions = new Permissions(payload.role.permissions)\n if (payload.role.icon && props.icon) role.icon = iconHashToBigInt(payload.role.icon)\n if (payload.role.unicode_emoji && props.unicodeEmoji) role.unicodeEmoji = payload.role.unicode_emoji\n if (payload.role.tags && (props.botId || props.integrationId || props.subscriptionListingId)) {\n role.internalTags = {}\n if (payload.role.tags.bot_id && props.botId) role.internalTags.botId = bot.transformers.snowflake(payload.role.tags.bot_id)\n if (payload.role.tags.integration_id && props.integrationId)\n role.internalTags.integrationId = bot.transformers.snowflake(payload.role.tags.integration_id)\n if (payload.role.tags.subscription_listing_id && props.subscriptionListingId)\n role.internalTags.subscriptionListingId = bot.transformers.snowflake(payload.role.tags.subscription_listing_id)\n }\n if (props.hoist || props.managed || props.mentionable) {\n role.toggles = new RoleToggles(payload.role)\n }\n\n return bot.transformers.customizers.role(bot, payload.role, role)\n}\n\nexport interface BaseRole {\n /** The tags this role has */\n tags?: {\n /** The id of the bot this role belongs to */\n botId?: bigint\n /** The id of the integration this role belongs to */\n integrationId?: bigint\n /** Id of this role's subscription sku and listing. */\n subscriptionListingId?: bigint\n /** Whether this role is available for purchase. */\n availableForPurchase?: boolean\n /** Whether this is a guild's linked role */\n guildConnections?: boolean\n /** Whether this is the guild's premium subscriber role */\n premiumSubscriber?: boolean\n }\n /** If this role is showed separately in the user listing */\n hoist: boolean\n /** Whether this role is managed by an integration */\n managed: boolean\n /** Whether this role is mentionable */\n mentionable: boolean\n /** Whether this is the guilds premium subscriber role */\n premiumSubscriber: boolean\n /** Whether this role is available for purchase. */\n availableForPurchase: boolean\n /** Whether this is a guild's linked role. */\n guildConnections: boolean\n}\n\nexport interface Role extends BaseRole {\n /** Role id */\n id: bigint\n /** The guild id where this role is located. */\n guildId: bigint\n /** The compressed version of the boolean values on this role. */\n toggles?: RoleToggles\n /** If this role is showed separately in the user listing */\n hoist: boolean\n /** Permission bit set */\n permissions: Permissions\n /** Whether this role is managed by an integration */\n managed: boolean\n /** Whether this role is mentionable */\n mentionable: boolean\n /** \n * Use role.tags \n * @deprecated this is not deprecated, but this is here to prevent users from using this as this is an internal value open to breaking changes.\n */\n internalTags?: {\n /** The id of the bot this role belongs to */\n botId?: bigint\n /** The id of the integration this role belongs to */\n integrationId?: bigint\n /** Id of this role's subscription sku and listing. */\n subscriptionListingId?: bigint\n }\n /** the role emoji hash */\n icon?: bigint\n /** Role name */\n name: string\n /** Integer representation of hexadecimal color code */\n color: number\n /** Position of this role */\n position: number\n /** role unicode emoji */\n unicodeEmoji?: string\n}\n"],"names":["iconHashToBigInt","Permissions","RoleToggles","baseRole","tags","botId","internalTags","integrationId","subscriptionListingId","availableForPurchase","toggles","guildConnections","premiumSubscriber","hoist","has","managed","mentionable","transformRole","bot","payload","role","Object","create","props","transformers","desiredProperties","id","snowflake","name","position","guildId","color","permissions","icon","unicode_emoji","unicodeEmoji","bot_id","integration_id","subscription_listing_id","customizers"],"mappings":"AACA,SAASA,gBAAgB,QAAkB,cAAa;AACxD,SAASC,WAAW,QAAQ,2BAA0B;AACtD,SAASC,WAAW,QAAQ,oBAAmB;AAE/C,MAAMC,WAAqC;IACzC,IAAIC,QAAO;QACT,OAAO;YACLC,OAAO,IAAI,CAACC,YAAY,EAAED;YAC1BE,eAAe,IAAI,CAACD,YAAY,EAAEC;YAClCC,uBAAuB,IAAI,CAACF,YAAY,EAAEE;YAC1CC,sBAAsB,IAAI,CAACC,OAAO,EAAED;YACpCE,kBAAkB,IAAI,CAACD,OAAO,EAAEC;YAChCC,mBAAmB,IAAI,CAACF,OAAO,EAAEE;QACnC;IACF;IACA,0DAA0D,GAC1D,IAAIC,SAAQ;QACV,OAAO,CAAC,CAAC,IAAI,CAACH,OA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AYiB,QAAQC,IAAI;IAC7C,CAAC;IAED,OAAOF,IAAIM,YAAY,CAACe,WAAW,CAACnB,IAAI,CAACF,KAAKC,QAAQC,IAAI,EAAEA;AAC9D,CAAC"}
|
|
@@ -2,12 +2,12 @@ import type { DiscordScheduledEvent } from '@discordeno/types';
|
|
|
2
2
|
import { type Bot } from '../index.js';
|
|
3
3
|
export declare function transformScheduledEvent(bot: Bot, payload: DiscordScheduledEvent): {
|
|
4
4
|
description?: string | undefined;
|
|
5
|
-
location?: string | undefined;
|
|
6
5
|
channelId?: bigint | undefined;
|
|
7
6
|
image?: bigint | undefined;
|
|
8
7
|
scheduledEndTime?: number | undefined;
|
|
9
8
|
entityId?: bigint | undefined;
|
|
10
9
|
creator?: {
|
|
10
|
+
locale?: string | undefined;
|
|
11
11
|
flags?: {
|
|
12
12
|
bitfield: number;
|
|
13
13
|
contains: (bits: number) => boolean;
|
|
@@ -15,7 +15,6 @@ export declare function transformScheduledEvent(bot: Bot, payload: DiscordSchedu
|
|
|
15
15
|
remove: (bits: number) => import("./toggles/ToggleBitfield.js").ToggleBitfield;
|
|
16
16
|
toJSON: () => number;
|
|
17
17
|
} | undefined;
|
|
18
|
-
locale?: string | undefined;
|
|
19
18
|
avatar?: bigint | undefined;
|
|
20
19
|
email?: string | undefined;
|
|
21
20
|
banner?: bigint | undefined;
|
|
@@ -25,8 +24,8 @@ export declare function transformScheduledEvent(bot: Bot, payload: DiscordSchedu
|
|
|
25
24
|
verified: boolean;
|
|
26
25
|
mfaEnabled: boolean;
|
|
27
26
|
bitfield: number;
|
|
28
|
-
has: (permissions: "bot" | "system" | "verified" | "mfaEnabled" | ("bot" | "system" | "verified" | "mfaEnabled")[]) => boolean;
|
|
29
27
|
list: () => Record<"bot" | "system" | "verified" | "mfaEnabled", boolean>;
|
|
28
|
+
has: (permissions: "bot" | "system" | "verified" | "mfaEnabled" | ("bot" | "system" | "verified" | "mfaEnabled")[]) => boolean;
|
|
30
29
|
contains: (bits: number) => boolean;
|
|
31
30
|
add: (bits: number) => import("./toggles/user.js").UserToggles;
|
|
32
31
|
remove: (bits: number) => import("./toggles/user.js").UserToggles;
|
|
@@ -41,8 +40,8 @@ export declare function transformScheduledEvent(bot: Bot, payload: DiscordSchedu
|
|
|
41
40
|
toJSON: () => number;
|
|
42
41
|
} | undefined;
|
|
43
42
|
accentColor?: number | undefined;
|
|
44
|
-
id: bigint;
|
|
45
43
|
username: string;
|
|
44
|
+
id: bigint;
|
|
46
45
|
discriminator: string;
|
|
47
46
|
bot: boolean;
|
|
48
47
|
system: boolean;
|
|
@@ -50,13 +49,14 @@ export declare function transformScheduledEvent(bot: Bot, payload: DiscordSchedu
|
|
|
50
49
|
tag: string;
|
|
51
50
|
mfaEnabled: boolean;
|
|
52
51
|
} | undefined;
|
|
52
|
+
location?: string | undefined;
|
|
53
53
|
id: bigint;
|
|
54
54
|
name: string;
|
|
55
55
|
guildId: bigint;
|
|
56
|
-
status: import("@discordeno/types").ScheduledEventStatus;
|
|
57
56
|
creatorId: bigint;
|
|
58
57
|
scheduledStartTime: number;
|
|
59
58
|
privacyLevel: import("@discordeno/types").ScheduledEventPrivacyLevel;
|
|
59
|
+
status: import("@discordeno/types").ScheduledEventStatus;
|
|
60
60
|
entityType: import("@discordeno/types").ScheduledEventEntityType;
|
|
61
61
|
userCount: number;
|
|
62
62
|
};
|
|
@@ -2,7 +2,9 @@ import type { DiscordSticker, DiscordStickerPack } from '@discordeno/types';
|
|
|
2
2
|
import type { Bot } from '../index.js';
|
|
3
3
|
export declare function transformSticker(bot: Bot, payload: DiscordSticker): {
|
|
4
4
|
guildId?: bigint | undefined;
|
|
5
|
+
available?: boolean | undefined;
|
|
5
6
|
user?: {
|
|
7
|
+
locale?: string | undefined;
|
|
6
8
|
flags?: {
|
|
7
9
|
bitfield: number;
|
|
8
10
|
contains: (bits: number) => boolean;
|
|
@@ -10,7 +12,6 @@ export declare function transformSticker(bot: Bot, payload: DiscordSticker): {
|
|
|
10
12
|
remove: (bits: number) => import("./toggles/ToggleBitfield.js").ToggleBitfield;
|
|
11
13
|
toJSON: () => number;
|
|
12
14
|
} | undefined;
|
|
13
|
-
locale?: string | undefined;
|
|
14
15
|
avatar?: bigint | undefined;
|
|
15
16
|
email?: string | undefined;
|
|
16
17
|
banner?: bigint | undefined;
|
|
@@ -20,8 +21,8 @@ export declare function transformSticker(bot: Bot, payload: DiscordSticker): {
|
|
|
20
21
|
verified: boolean;
|
|
21
22
|
mfaEnabled: boolean;
|
|
22
23
|
bitfield: number;
|
|
23
|
-
has: (permissions: "bot" | "system" | "verified" | "mfaEnabled" | ("bot" | "system" | "verified" | "mfaEnabled")[]) => boolean;
|
|
24
24
|
list: () => Record<"bot" | "system" | "verified" | "mfaEnabled", boolean>;
|
|
25
|
+
has: (permissions: "bot" | "system" | "verified" | "mfaEnabled" | ("bot" | "system" | "verified" | "mfaEnabled")[]) => boolean;
|
|
25
26
|
contains: (bits: number) => boolean;
|
|
26
27
|
add: (bits: number) => import("./toggles/user.js").UserToggles;
|
|
27
28
|
remove: (bits: number) => import("./toggles/user.js").UserToggles;
|
|
@@ -36,8 +37,8 @@ export declare function transformSticker(bot: Bot, payload: DiscordSticker): {
|
|
|
36
37
|
toJSON: () => number;
|
|
37
38
|
} | undefined;
|
|
38
39
|
accentColor?: number | undefined;
|
|
39
|
-
id: bigint;
|
|
40
40
|
username: string;
|
|
41
|
+
id: bigint;
|
|
41
42
|
discriminator: string;
|
|
42
43
|
bot: boolean;
|
|
43
44
|
system: boolean;
|
|
@@ -45,13 +46,12 @@ export declare function transformSticker(bot: Bot, payload: DiscordSticker): {
|
|
|
45
46
|
tag: string;
|
|
46
47
|
mfaEnabled: boolean;
|
|
47
48
|
} | undefined;
|
|
48
|
-
available?: boolean | undefined;
|
|
49
49
|
packId?: bigint | undefined;
|
|
50
50
|
sortValue?: number | undefined;
|
|
51
51
|
id: bigint;
|
|
52
52
|
name: string;
|
|
53
|
-
type: import("@discordeno/types").StickerTypes;
|
|
54
53
|
description: string;
|
|
54
|
+
type: import("@discordeno/types").StickerTypes;
|
|
55
55
|
tags: string;
|
|
56
56
|
formatType: import("@discordeno/types").StickerFormatTypes;
|
|
57
57
|
};
|
|
@@ -4,11 +4,11 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
4
4
|
description?: string | null | undefined;
|
|
5
5
|
isDirty?: boolean | undefined;
|
|
6
6
|
name: string;
|
|
7
|
-
createdAt: number;
|
|
8
|
-
code: string;
|
|
9
7
|
creatorId: bigint;
|
|
10
8
|
creator: import("./user.js").User;
|
|
9
|
+
code: string;
|
|
11
10
|
usageCount: number;
|
|
11
|
+
createdAt: number;
|
|
12
12
|
updatedAt: number;
|
|
13
13
|
sourceGuildId: bigint;
|
|
14
14
|
serializedSourceGuild: {
|
|
@@ -18,13 +18,9 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
18
18
|
members?: {
|
|
19
19
|
avatar?: string | undefined;
|
|
20
20
|
permissions?: string | undefined;
|
|
21
|
-
nick?: string | null | undefined;
|
|
22
|
-
communication_disabled_until?: string | null | undefined;
|
|
23
|
-
deaf?: boolean | undefined;
|
|
24
|
-
mute?: boolean | undefined;
|
|
25
21
|
user?: {
|
|
26
|
-
flags?: number | undefined;
|
|
27
22
|
locale?: string | undefined;
|
|
23
|
+
flags?: number | undefined;
|
|
28
24
|
premium_type?: import("@discordeno/types").PremiumTypes | undefined;
|
|
29
25
|
public_flags?: number | undefined;
|
|
30
26
|
accent_color?: number | undefined;
|
|
@@ -35,66 +31,55 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
35
31
|
verified?: boolean | undefined;
|
|
36
32
|
email?: string | null | undefined;
|
|
37
33
|
banner?: string | undefined;
|
|
38
|
-
id: string;
|
|
39
34
|
username: string;
|
|
35
|
+
id: string;
|
|
40
36
|
discriminator: string;
|
|
41
37
|
} | undefined;
|
|
38
|
+
deaf?: boolean | undefined;
|
|
39
|
+
mute?: boolean | undefined;
|
|
42
40
|
pending?: boolean | undefined;
|
|
41
|
+
nick?: string | null | undefined;
|
|
43
42
|
premium_since?: string | null | undefined;
|
|
43
|
+
communication_disabled_until?: string | null | undefined;
|
|
44
44
|
roles: string[];
|
|
45
45
|
joined_at: string;
|
|
46
46
|
}[] | undefined;
|
|
47
47
|
description?: string | null | undefined;
|
|
48
48
|
owner?: boolean | undefined;
|
|
49
49
|
permissions?: string | undefined;
|
|
50
|
-
rules_channel_id?: string | null | undefined;
|
|
51
|
-
public_updates_channel_id?: string | null | undefined;
|
|
52
|
-
icon_hash?: string | null | undefined;
|
|
53
|
-
owner_id?: string | undefined;
|
|
54
|
-
afk_channel_id?: string | null | undefined;
|
|
55
|
-
vanity_url_code?: string | null | undefined;
|
|
56
|
-
widget_channel_id?: string | null | undefined;
|
|
57
|
-
system_channel_id?: string | null | undefined;
|
|
58
|
-
application_id?: string | null | undefined;
|
|
59
|
-
mfa_level?: import("@discordeno/types").MfaLevels | undefined;
|
|
60
|
-
widget_enabled?: boolean | undefined;
|
|
61
|
-
joined_at?: string | undefined;
|
|
62
|
-
member_count?: number | undefined;
|
|
63
50
|
large?: boolean | undefined;
|
|
64
51
|
unavailable?: boolean | undefined;
|
|
65
52
|
splash?: string | null | undefined;
|
|
66
53
|
channels?: {
|
|
67
|
-
name?: string | undefined;
|
|
68
54
|
flags?: import("@discordeno/types").ChannelFlags | undefined;
|
|
55
|
+
name?: string | undefined;
|
|
69
56
|
icon?: string | undefined;
|
|
70
57
|
permissions?: string | undefined;
|
|
71
|
-
|
|
72
|
-
topic?: string | null | undefined;
|
|
73
|
-
application_id?: string | undefined;
|
|
58
|
+
nsfw?: boolean | undefined;
|
|
74
59
|
position?: number | undefined;
|
|
60
|
+
topic?: string | null | undefined;
|
|
75
61
|
bitrate?: number | undefined;
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
member?: {
|
|
63
|
+
flags: number;
|
|
64
|
+
id: string;
|
|
65
|
+
user_id: string;
|
|
66
|
+
join_timestamp: string;
|
|
67
|
+
} | undefined;
|
|
78
68
|
default_auto_archive_duration?: number | undefined;
|
|
79
|
-
|
|
69
|
+
managed?: boolean | undefined;
|
|
70
|
+
guild_id?: string | undefined;
|
|
80
71
|
permission_overwrites?: {
|
|
81
72
|
allow?: string | undefined;
|
|
82
73
|
deny?: string | undefined;
|
|
83
74
|
id: string;
|
|
84
75
|
type: import("@discordeno/types").OverwriteTypes;
|
|
85
76
|
}[] | undefined;
|
|
86
|
-
managed?: boolean | undefined;
|
|
87
|
-
member?: {
|
|
88
|
-
id: string;
|
|
89
|
-
flags: number;
|
|
90
|
-
user_id: string;
|
|
91
|
-
join_timestamp: string;
|
|
92
|
-
} | undefined;
|
|
93
|
-
guild_id?: string | undefined;
|
|
94
77
|
last_message_id?: string | null | undefined;
|
|
78
|
+
user_limit?: number | undefined;
|
|
79
|
+
rate_limit_per_user?: number | undefined;
|
|
95
80
|
recipients?: {
|
|
96
|
-
flags?: number | undefined;
|
|
97
81
|
locale?: string | undefined;
|
|
82
|
+
flags?: number | undefined;
|
|
98
83
|
premium_type?: import("@discordeno/types").PremiumTypes | undefined;
|
|
99
84
|
public_flags?: number | undefined;
|
|
100
85
|
accent_color?: number | undefined;
|
|
@@ -105,10 +90,12 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
105
90
|
verified?: boolean | undefined;
|
|
106
91
|
email?: string | null | undefined;
|
|
107
92
|
banner?: string | undefined;
|
|
108
|
-
id: string;
|
|
109
93
|
username: string;
|
|
94
|
+
id: string;
|
|
110
95
|
discriminator: string;
|
|
111
96
|
}[] | undefined;
|
|
97
|
+
owner_id?: string | undefined;
|
|
98
|
+
application_id?: string | undefined;
|
|
112
99
|
parent_id?: string | null | undefined;
|
|
113
100
|
last_pin_timestamp?: string | null | undefined;
|
|
114
101
|
rtc_region?: string | null | undefined;
|
|
@@ -118,10 +105,10 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
118
105
|
thread_metadata?: {
|
|
119
106
|
invitable?: boolean | undefined;
|
|
120
107
|
create_timestamp?: string | null | undefined;
|
|
121
|
-
auto_archive_duration: 60 | 1440 | 4320 | 10080;
|
|
122
|
-
archived: boolean;
|
|
123
108
|
locked: boolean;
|
|
109
|
+
archived: boolean;
|
|
124
110
|
archive_timestamp: string;
|
|
111
|
+
auto_archive_duration: 60 | 1440 | 4320 | 10080;
|
|
125
112
|
} | undefined;
|
|
126
113
|
total_message_sent?: number | undefined;
|
|
127
114
|
available_tags?: {
|
|
@@ -146,11 +133,13 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
146
133
|
emojis?: {
|
|
147
134
|
id?: string | undefined;
|
|
148
135
|
name?: string | undefined;
|
|
149
|
-
animated?: boolean | undefined;
|
|
150
136
|
managed?: boolean | undefined;
|
|
137
|
+
animated?: boolean | undefined;
|
|
138
|
+
available?: boolean | undefined;
|
|
139
|
+
roles?: string[] | undefined;
|
|
151
140
|
user?: {
|
|
152
|
-
flags?: number | undefined;
|
|
153
141
|
locale?: string | undefined;
|
|
142
|
+
flags?: number | undefined;
|
|
154
143
|
premium_type?: import("@discordeno/types").PremiumTypes | undefined;
|
|
155
144
|
public_flags?: number | undefined;
|
|
156
145
|
accent_color?: number | undefined;
|
|
@@ -161,18 +150,21 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
161
150
|
verified?: boolean | undefined;
|
|
162
151
|
email?: string | null | undefined;
|
|
163
152
|
banner?: string | undefined;
|
|
164
|
-
id: string;
|
|
165
153
|
username: string;
|
|
154
|
+
id: string;
|
|
166
155
|
discriminator: string;
|
|
167
156
|
} | undefined;
|
|
168
|
-
roles?: string[] | undefined;
|
|
169
|
-
available?: boolean | undefined;
|
|
170
157
|
require_colons?: boolean | undefined;
|
|
171
158
|
}[] | undefined;
|
|
159
|
+
joined_at?: string | undefined;
|
|
160
|
+
owner_id?: string | undefined;
|
|
161
|
+
application_id?: string | null | undefined;
|
|
162
|
+
member_count?: number | undefined;
|
|
172
163
|
stickers?: {
|
|
164
|
+
available?: boolean | undefined;
|
|
173
165
|
user?: {
|
|
174
|
-
flags?: number | undefined;
|
|
175
166
|
locale?: string | undefined;
|
|
167
|
+
flags?: number | undefined;
|
|
176
168
|
premium_type?: import("@discordeno/types").PremiumTypes | undefined;
|
|
177
169
|
public_flags?: number | undefined;
|
|
178
170
|
accent_color?: number | undefined;
|
|
@@ -183,24 +175,28 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
183
175
|
verified?: boolean | undefined;
|
|
184
176
|
email?: string | null | undefined;
|
|
185
177
|
banner?: string | undefined;
|
|
186
|
-
id: string;
|
|
187
178
|
username: string;
|
|
179
|
+
id: string;
|
|
188
180
|
discriminator: string;
|
|
189
181
|
} | undefined;
|
|
190
182
|
guild_id?: string | undefined;
|
|
191
|
-
available?: boolean | undefined;
|
|
192
183
|
pack_id?: string | undefined;
|
|
193
184
|
sort_value?: number | undefined;
|
|
194
185
|
id: string;
|
|
195
186
|
name: string;
|
|
196
|
-
type: import("@discordeno/types").StickerTypes;
|
|
197
187
|
description: string;
|
|
188
|
+
type: import("@discordeno/types").StickerTypes;
|
|
198
189
|
tags: string;
|
|
199
190
|
format_type: import("@discordeno/types").StickerFormatTypes;
|
|
200
191
|
}[] | undefined;
|
|
192
|
+
afk_channel_id?: string | null | undefined;
|
|
193
|
+
system_channel_id?: string | null | undefined;
|
|
194
|
+
widget_enabled?: boolean | undefined;
|
|
201
195
|
features?: import("@discordeno/types").GuildFeatures[] | undefined;
|
|
196
|
+
mfa_level?: import("@discordeno/types").MfaLevels | undefined;
|
|
202
197
|
max_presences?: number | null | undefined;
|
|
203
198
|
max_members?: number | undefined;
|
|
199
|
+
vanity_url_code?: string | null | undefined;
|
|
204
200
|
premium_tier?: import("@discordeno/types").PremiumTiers | undefined;
|
|
205
201
|
premium_subscription_count?: number | undefined;
|
|
206
202
|
max_video_channel_users?: number | undefined;
|
|
@@ -209,66 +205,67 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
209
205
|
approximate_presence_count?: number | undefined;
|
|
210
206
|
nsfw_level?: import("@discordeno/types").GuildNsfwLevel | undefined;
|
|
211
207
|
premium_progress_bar_enabled?: boolean | undefined;
|
|
208
|
+
icon_hash?: string | null | undefined;
|
|
212
209
|
discovery_splash?: string | null | undefined;
|
|
210
|
+
widget_channel_id?: string | null | undefined;
|
|
211
|
+
rules_channel_id?: string | null | undefined;
|
|
213
212
|
voice_states?: {
|
|
214
|
-
channel_id?: string | null | undefined;
|
|
215
213
|
member?: {
|
|
216
214
|
avatar?: string | undefined;
|
|
217
215
|
permissions?: string | undefined;
|
|
218
|
-
nick?: string | null | undefined;
|
|
219
|
-
communication_disabled_until?: string | null | undefined;
|
|
220
216
|
deaf?: boolean | undefined;
|
|
221
217
|
mute?: boolean | undefined;
|
|
222
218
|
pending?: boolean | undefined;
|
|
219
|
+
nick?: string | null | undefined;
|
|
223
220
|
premium_since?: string | null | undefined;
|
|
224
|
-
|
|
221
|
+
communication_disabled_until?: string | null | undefined;
|
|
225
222
|
roles: string[];
|
|
223
|
+
user: import("@discordeno/types").DiscordUser;
|
|
226
224
|
joined_at: string;
|
|
227
225
|
} | undefined;
|
|
228
226
|
guild_id?: string | undefined;
|
|
227
|
+
channel_id?: string | null | undefined;
|
|
229
228
|
self_stream?: boolean | undefined;
|
|
230
229
|
request_to_speak_timestamp?: string | null | undefined;
|
|
231
|
-
deaf: boolean;
|
|
232
|
-
mute: boolean;
|
|
233
230
|
session_id: string;
|
|
234
231
|
user_id: string;
|
|
232
|
+
deaf: boolean;
|
|
233
|
+
mute: boolean;
|
|
235
234
|
self_deaf: boolean;
|
|
236
235
|
self_mute: boolean;
|
|
237
236
|
self_video: boolean;
|
|
238
237
|
suppress: boolean;
|
|
239
238
|
}[] | undefined;
|
|
240
239
|
threads?: {
|
|
241
|
-
name?: string | undefined;
|
|
242
240
|
flags?: import("@discordeno/types").ChannelFlags | undefined;
|
|
241
|
+
name?: string | undefined;
|
|
243
242
|
icon?: string | undefined;
|
|
244
243
|
permissions?: string | undefined;
|
|
245
|
-
|
|
246
|
-
topic?: string | null | undefined;
|
|
247
|
-
application_id?: string | undefined;
|
|
244
|
+
nsfw?: boolean | undefined;
|
|
248
245
|
position?: number | undefined;
|
|
246
|
+
topic?: string | null | undefined;
|
|
249
247
|
bitrate?: number | undefined;
|
|
250
|
-
|
|
251
|
-
|
|
248
|
+
member?: {
|
|
249
|
+
flags: number;
|
|
250
|
+
id: string;
|
|
251
|
+
user_id: string;
|
|
252
|
+
join_timestamp: string;
|
|
253
|
+
} | undefined;
|
|
252
254
|
default_auto_archive_duration?: number | undefined;
|
|
253
|
-
|
|
255
|
+
managed?: boolean | undefined;
|
|
256
|
+
guild_id?: string | undefined;
|
|
254
257
|
permission_overwrites?: {
|
|
255
258
|
allow?: string | undefined;
|
|
256
259
|
deny?: string | undefined;
|
|
257
260
|
id: string;
|
|
258
261
|
type: import("@discordeno/types").OverwriteTypes;
|
|
259
262
|
}[] | undefined;
|
|
260
|
-
managed?: boolean | undefined;
|
|
261
|
-
member?: {
|
|
262
|
-
id: string;
|
|
263
|
-
flags: number;
|
|
264
|
-
user_id: string;
|
|
265
|
-
join_timestamp: string;
|
|
266
|
-
} | undefined;
|
|
267
|
-
guild_id?: string | undefined;
|
|
268
263
|
last_message_id?: string | null | undefined;
|
|
264
|
+
user_limit?: number | undefined;
|
|
265
|
+
rate_limit_per_user?: number | undefined;
|
|
269
266
|
recipients?: {
|
|
270
|
-
flags?: number | undefined;
|
|
271
267
|
locale?: string | undefined;
|
|
268
|
+
flags?: number | undefined;
|
|
272
269
|
premium_type?: import("@discordeno/types").PremiumTypes | undefined;
|
|
273
270
|
public_flags?: number | undefined;
|
|
274
271
|
accent_color?: number | undefined;
|
|
@@ -279,10 +276,12 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
279
276
|
verified?: boolean | undefined;
|
|
280
277
|
email?: string | null | undefined;
|
|
281
278
|
banner?: string | undefined;
|
|
282
|
-
id: string;
|
|
283
279
|
username: string;
|
|
280
|
+
id: string;
|
|
284
281
|
discriminator: string;
|
|
285
282
|
}[] | undefined;
|
|
283
|
+
owner_id?: string | undefined;
|
|
284
|
+
application_id?: string | undefined;
|
|
286
285
|
parent_id?: string | null | undefined;
|
|
287
286
|
last_pin_timestamp?: string | null | undefined;
|
|
288
287
|
rtc_region?: string | null | undefined;
|
|
@@ -292,10 +291,10 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
292
291
|
thread_metadata?: {
|
|
293
292
|
invitable?: boolean | undefined;
|
|
294
293
|
create_timestamp?: string | null | undefined;
|
|
295
|
-
auto_archive_duration: 60 | 1440 | 4320 | 10080;
|
|
296
|
-
archived: boolean;
|
|
297
294
|
locked: boolean;
|
|
295
|
+
archived: boolean;
|
|
298
296
|
archive_timestamp: string;
|
|
297
|
+
auto_archive_duration: 60 | 1440 | 4320 | 10080;
|
|
299
298
|
} | undefined;
|
|
300
299
|
total_message_sent?: number | undefined;
|
|
301
300
|
available_tags?: {
|
|
@@ -318,10 +317,9 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
318
317
|
default_thread_rate_limit_per_user: number;
|
|
319
318
|
}[] | undefined;
|
|
320
319
|
presences?: {
|
|
321
|
-
status?: "idle" | "dnd" | "online" | "offline" | undefined;
|
|
322
320
|
user?: {
|
|
323
|
-
flags?: number | undefined;
|
|
324
321
|
locale?: string | undefined;
|
|
322
|
+
flags?: number | undefined;
|
|
325
323
|
premium_type?: import("@discordeno/types").PremiumTypes | undefined;
|
|
326
324
|
public_flags?: number | undefined;
|
|
327
325
|
accent_color?: number | undefined;
|
|
@@ -332,27 +330,24 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
332
330
|
verified?: boolean | undefined;
|
|
333
331
|
email?: string | null | undefined;
|
|
334
332
|
banner?: string | undefined;
|
|
335
|
-
id: string;
|
|
336
333
|
username: string;
|
|
334
|
+
id: string;
|
|
337
335
|
discriminator: string;
|
|
338
336
|
} | undefined;
|
|
339
337
|
guild_id?: string | undefined;
|
|
338
|
+
status?: "idle" | "dnd" | "online" | "offline" | undefined;
|
|
340
339
|
activities?: {
|
|
340
|
+
flags?: number | undefined;
|
|
341
341
|
url?: string | null | undefined;
|
|
342
|
-
|
|
343
|
-
state?: string | null | undefined;
|
|
342
|
+
application_id?: string | undefined;
|
|
344
343
|
emoji?: {
|
|
345
344
|
id?: string | undefined;
|
|
346
345
|
animated?: boolean | undefined;
|
|
347
346
|
name: string;
|
|
348
347
|
} | null | undefined;
|
|
348
|
+
details?: string | null | undefined;
|
|
349
|
+
state?: string | null | undefined;
|
|
349
350
|
instance?: boolean | undefined;
|
|
350
|
-
flags?: number | undefined;
|
|
351
|
-
buttons?: {
|
|
352
|
-
url: string;
|
|
353
|
-
label: string;
|
|
354
|
-
}[] | undefined;
|
|
355
|
-
application_id?: string | undefined;
|
|
356
351
|
timestamps?: {
|
|
357
352
|
start?: number | undefined;
|
|
358
353
|
end?: number | undefined;
|
|
@@ -362,16 +357,20 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
362
357
|
size?: [currentSize?: number | undefined, maxSize?: number | undefined] | undefined;
|
|
363
358
|
} | undefined;
|
|
364
359
|
assets?: {
|
|
365
|
-
large_image?: string | undefined;
|
|
366
360
|
large_text?: string | undefined;
|
|
367
|
-
small_image?: string | undefined;
|
|
368
361
|
small_text?: string | undefined;
|
|
362
|
+
large_image?: string | undefined;
|
|
363
|
+
small_image?: string | undefined;
|
|
369
364
|
} | undefined;
|
|
370
365
|
secrets?: {
|
|
371
366
|
join?: string | undefined;
|
|
372
367
|
spectate?: string | undefined;
|
|
373
368
|
match?: string | undefined;
|
|
374
369
|
} | undefined;
|
|
370
|
+
buttons?: {
|
|
371
|
+
url: string;
|
|
372
|
+
label: string;
|
|
373
|
+
}[] | undefined;
|
|
375
374
|
name: string;
|
|
376
375
|
type: import("@discordeno/types").ActivityTypes;
|
|
377
376
|
created_at: number;
|
|
@@ -382,6 +381,7 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
382
381
|
web?: string | undefined;
|
|
383
382
|
} | undefined;
|
|
384
383
|
}[] | undefined;
|
|
384
|
+
public_updates_channel_id?: string | null | undefined;
|
|
385
385
|
welcome_screen?: {
|
|
386
386
|
description?: string | null | undefined;
|
|
387
387
|
welcome_channels: import("@discordeno/types").DiscordWelcomeScreenChannel[];
|
|
@@ -390,18 +390,18 @@ export declare function transformTemplate(bot: Bot, payload: DiscordTemplate): {
|
|
|
390
390
|
guild_scheduled_event_id?: string | undefined;
|
|
391
391
|
id: string;
|
|
392
392
|
topic: string;
|
|
393
|
-
channel_id: string;
|
|
394
393
|
guild_id: string;
|
|
394
|
+
channel_id: string;
|
|
395
395
|
}[] | undefined;
|
|
396
396
|
name: string;
|
|
397
|
-
preferred_locale: string;
|
|
398
|
-
afk_timeout: number;
|
|
399
|
-
verification_level: import("@discordeno/types").VerificationLevels;
|
|
400
|
-
explicit_content_filter: import("@discordeno/types").ExplicitContentFilterLevels;
|
|
401
|
-
default_message_notifications: import("@discordeno/types").DefaultMessageNotificationLevels;
|
|
402
397
|
roles: (Omit<import("@discordeno/types").PickPartial<import("@discordeno/types").DiscordRole, "name" | "icon" | "permissions" | "color" | "hoist" | "mentionable" | "unicode_emoji">, "id"> & {
|
|
403
398
|
id: number;
|
|
404
399
|
})[];
|
|
400
|
+
verification_level: import("@discordeno/types").VerificationLevels;
|
|
401
|
+
default_message_notifications: import("@discordeno/types").DefaultMessageNotificationLevels;
|
|
402
|
+
explicit_content_filter: import("@discordeno/types").ExplicitContentFilterLevels;
|
|
403
|
+
preferred_locale: string;
|
|
404
|
+
afk_timeout: number;
|
|
405
405
|
system_channel_flags: import("@discordeno/types").SystemChannelFlags;
|
|
406
406
|
};
|
|
407
407
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transformers/toggles/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transformers/toggles/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,WAAW,CAAA;AACzB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/transformers/toggles/index.ts"],"sourcesContent":["export * from './emoji.js'\nexport * from './guild.js'\nexport * from './member.js'\nexport * from './role.js'\nexport * from './ToggleBitfield.js'\nexport * from './user.js'\nexport * from './voice.js'\n"],"names":[],"mappings":"AAAA,cAAc,aAAY;AAC1B,cAAc,aAAY;AAC1B,cAAc,cAAa;AAC3B,cAAc,YAAW;AACzB,cAAc,sBAAqB;AACnC,cAAc,YAAW;AACzB,cAAc,aAAY"}
|
|
1
|
+
{"version":3,"sources":["../../../src/transformers/toggles/index.ts"],"sourcesContent":["export * from './channel.js'\nexport * from './emoji.js'\nexport * from './guild.js'\nexport * from './member.js'\nexport * from './Permissions.js'\nexport * from './role.js'\nexport * from './ToggleBitfield.js'\nexport * from './user.js'\nexport * from './voice.js'\n"],"names":[],"mappings":"AAAA,cAAc,eAAc;AAC5B,cAAc,aAAY;AAC1B,cAAc,aAAY;AAC1B,cAAc,cAAa;AAC3B,cAAc,mBAAkB;AAChC,cAAc,YAAW;AACzB,cAAc,sBAAqB;AACnC,cAAc,YAAW;AACzB,cAAc,aAAY"}
|
|
@@ -3,9 +3,9 @@ import type { Bot } from '../index.js';
|
|
|
3
3
|
export declare function transformVoiceRegion(bot: Bot, payload: DiscordVoiceRegion): {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
|
+
custom: boolean;
|
|
6
7
|
optimal: boolean;
|
|
7
8
|
deprecated: boolean;
|
|
8
|
-
custom: boolean;
|
|
9
9
|
};
|
|
10
10
|
export interface VoiceRegions extends ReturnType<typeof transformVoiceRegion> {
|
|
11
11
|
}
|