@buape/carbon 0.0.0-beta-20241008010229
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/LICENSE +21 -0
- package/README.md +52 -0
- package/dist/package.json +34 -0
- package/dist/src/abstracts/AnySelectMenu.d.ts +31 -0
- package/dist/src/abstracts/AnySelectMenu.d.ts.map +1 -0
- package/dist/src/abstracts/AnySelectMenu.js +19 -0
- package/dist/src/abstracts/AnySelectMenu.js.map +1 -0
- package/dist/src/abstracts/AnySelectMenuInteraction.d.ts +13 -0
- package/dist/src/abstracts/AnySelectMenuInteraction.d.ts.map +1 -0
- package/dist/src/abstracts/AnySelectMenuInteraction.js +21 -0
- package/dist/src/abstracts/AnySelectMenuInteraction.js.map +1 -0
- package/dist/src/abstracts/Base.d.ts +10 -0
- package/dist/src/abstracts/Base.d.ts.map +1 -0
- package/dist/src/abstracts/Base.js +11 -0
- package/dist/src/abstracts/Base.js.map +1 -0
- package/dist/src/abstracts/BaseChannel.d.ts +45 -0
- package/dist/src/abstracts/BaseChannel.d.ts.map +1 -0
- package/dist/src/abstracts/BaseChannel.js +68 -0
- package/dist/src/abstracts/BaseChannel.js.map +1 -0
- package/dist/src/abstracts/BaseCommand.d.ts +58 -0
- package/dist/src/abstracts/BaseCommand.d.ts.map +1 -0
- package/dist/src/abstracts/BaseCommand.js +72 -0
- package/dist/src/abstracts/BaseCommand.js.map +1 -0
- package/dist/src/abstracts/BaseComponent.d.ts +34 -0
- package/dist/src/abstracts/BaseComponent.d.ts.map +1 -0
- package/dist/src/abstracts/BaseComponent.js +30 -0
- package/dist/src/abstracts/BaseComponent.js.map +1 -0
- package/dist/src/abstracts/BaseComponentInteraction.d.ts +19 -0
- package/dist/src/abstracts/BaseComponentInteraction.d.ts.map +1 -0
- package/dist/src/abstracts/BaseComponentInteraction.js +42 -0
- package/dist/src/abstracts/BaseComponentInteraction.js.map +1 -0
- package/dist/src/abstracts/BaseGuildChannel.d.ts +70 -0
- package/dist/src/abstracts/BaseGuildChannel.d.ts.map +1 -0
- package/dist/src/abstracts/BaseGuildChannel.js +143 -0
- package/dist/src/abstracts/BaseGuildChannel.js.map +1 -0
- package/dist/src/abstracts/BaseGuildTextChannel.d.ts +46 -0
- package/dist/src/abstracts/BaseGuildTextChannel.d.ts.map +1 -0
- package/dist/src/abstracts/BaseGuildTextChannel.js +77 -0
- package/dist/src/abstracts/BaseGuildTextChannel.js.map +1 -0
- package/dist/src/abstracts/BaseInteraction.d.ts +92 -0
- package/dist/src/abstracts/BaseInteraction.d.ts.map +1 -0
- package/dist/src/abstracts/BaseInteraction.js +152 -0
- package/dist/src/abstracts/BaseInteraction.js.map +1 -0
- package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts +43 -0
- package/dist/src/abstracts/GuildThreadOnlyChannel.d.ts.map +1 -0
- package/dist/src/abstracts/GuildThreadOnlyChannel.js +69 -0
- package/dist/src/abstracts/GuildThreadOnlyChannel.js.map +1 -0
- package/dist/src/classes/Button.d.ts +49 -0
- package/dist/src/classes/Button.d.ts.map +1 -0
- package/dist/src/classes/Button.js +61 -0
- package/dist/src/classes/Button.js.map +1 -0
- package/dist/src/classes/ChannelSelectMenu.d.ts +15 -0
- package/dist/src/classes/ChannelSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/ChannelSelectMenu.js +15 -0
- package/dist/src/classes/ChannelSelectMenu.js.map +1 -0
- package/dist/src/classes/Client.d.ts +180 -0
- package/dist/src/classes/Client.d.ts.map +1 -0
- package/dist/src/classes/Client.js +263 -0
- package/dist/src/classes/Client.js.map +1 -0
- package/dist/src/classes/Command.d.ts +33 -0
- package/dist/src/classes/Command.d.ts.map +1 -0
- package/dist/src/classes/Command.js +31 -0
- package/dist/src/classes/Command.js.map +1 -0
- package/dist/src/classes/CommandWithSubcommandGroups.d.ts +22 -0
- package/dist/src/classes/CommandWithSubcommandGroups.d.ts.map +1 -0
- package/dist/src/classes/CommandWithSubcommandGroups.js +31 -0
- package/dist/src/classes/CommandWithSubcommandGroups.js.map +1 -0
- package/dist/src/classes/CommandWithSubcommands.d.ts +19 -0
- package/dist/src/classes/CommandWithSubcommands.d.ts.map +1 -0
- package/dist/src/classes/CommandWithSubcommands.js +21 -0
- package/dist/src/classes/CommandWithSubcommands.js.map +1 -0
- package/dist/src/classes/Embed.d.ts +61 -0
- package/dist/src/classes/Embed.d.ts.map +1 -0
- package/dist/src/classes/Embed.js +75 -0
- package/dist/src/classes/Embed.js.map +1 -0
- package/dist/src/classes/MentionableSelectMenu.d.ts +13 -0
- package/dist/src/classes/MentionableSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/MentionableSelectMenu.js +13 -0
- package/dist/src/classes/MentionableSelectMenu.js.map +1 -0
- package/dist/src/classes/Modal.d.ts +21 -0
- package/dist/src/classes/Modal.d.ts.map +1 -0
- package/dist/src/classes/Modal.js +14 -0
- package/dist/src/classes/Modal.js.map +1 -0
- package/dist/src/classes/RoleSelectMenu.d.ts +13 -0
- package/dist/src/classes/RoleSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/RoleSelectMenu.js +13 -0
- package/dist/src/classes/RoleSelectMenu.js.map +1 -0
- package/dist/src/classes/Row.d.ts +25 -0
- package/dist/src/classes/Row.d.ts.map +1 -0
- package/dist/src/classes/Row.js +40 -0
- package/dist/src/classes/Row.js.map +1 -0
- package/dist/src/classes/StringSelectMenu.d.ts +13 -0
- package/dist/src/classes/StringSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/StringSelectMenu.js +12 -0
- package/dist/src/classes/StringSelectMenu.js.map +1 -0
- package/dist/src/classes/TextInput.d.ts +40 -0
- package/dist/src/classes/TextInput.d.ts.map +1 -0
- package/dist/src/classes/TextInput.js +44 -0
- package/dist/src/classes/TextInput.js.map +1 -0
- package/dist/src/classes/UserSelectMenu.d.ts +13 -0
- package/dist/src/classes/UserSelectMenu.d.ts.map +1 -0
- package/dist/src/classes/UserSelectMenu.js +13 -0
- package/dist/src/classes/UserSelectMenu.js.map +1 -0
- package/dist/src/factories/channelFactory.d.ts +13 -0
- package/dist/src/factories/channelFactory.d.ts.map +1 -0
- package/dist/src/factories/channelFactory.js +39 -0
- package/dist/src/factories/channelFactory.js.map +1 -0
- package/dist/src/index.d.ts +55 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +61 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internals/AutocompleteInteraction.d.ts +33 -0
- package/dist/src/internals/AutocompleteInteraction.d.ts.map +1 -0
- package/dist/src/internals/AutocompleteInteraction.js +61 -0
- package/dist/src/internals/AutocompleteInteraction.js.map +1 -0
- package/dist/src/internals/ButtonInteraction.d.ts +9 -0
- package/dist/src/internals/ButtonInteraction.d.ts.map +1 -0
- package/dist/src/internals/ButtonInteraction.js +18 -0
- package/dist/src/internals/ButtonInteraction.js.map +1 -0
- package/dist/src/internals/ChannelSelectMenuInteraction.d.ts +8 -0
- package/dist/src/internals/ChannelSelectMenuInteraction.d.ts.map +1 -0
- package/dist/src/internals/ChannelSelectMenuInteraction.js +11 -0
- package/dist/src/internals/ChannelSelectMenuInteraction.js.map +1 -0
- package/dist/src/internals/CommandHandler.d.ts +12 -0
- package/dist/src/internals/CommandHandler.d.ts.map +1 -0
- package/dist/src/internals/CommandHandler.js +89 -0
- package/dist/src/internals/CommandHandler.js.map +1 -0
- package/dist/src/internals/CommandInteraction.d.ts +16 -0
- package/dist/src/internals/CommandInteraction.d.ts.map +1 -0
- package/dist/src/internals/CommandInteraction.js +23 -0
- package/dist/src/internals/CommandInteraction.js.map +1 -0
- package/dist/src/internals/ComponentHandler.d.ts +17 -0
- package/dist/src/internals/ComponentHandler.d.ts.map +1 -0
- package/dist/src/internals/ComponentHandler.js +75 -0
- package/dist/src/internals/ComponentHandler.js.map +1 -0
- package/dist/src/internals/FieldsHandler.d.ts +27 -0
- package/dist/src/internals/FieldsHandler.d.ts.map +1 -0
- package/dist/src/internals/FieldsHandler.js +37 -0
- package/dist/src/internals/FieldsHandler.js.map +1 -0
- package/dist/src/internals/MentionableSelectMenuInteraction.d.ts +9 -0
- package/dist/src/internals/MentionableSelectMenuInteraction.d.ts.map +1 -0
- package/dist/src/internals/MentionableSelectMenuInteraction.js +15 -0
- package/dist/src/internals/MentionableSelectMenuInteraction.js.map +1 -0
- package/dist/src/internals/ModalHandler.d.ts +17 -0
- package/dist/src/internals/ModalHandler.d.ts.map +1 -0
- package/dist/src/internals/ModalHandler.js +25 -0
- package/dist/src/internals/ModalHandler.js.map +1 -0
- package/dist/src/internals/ModalInteraction.d.ts +22 -0
- package/dist/src/internals/ModalInteraction.d.ts.map +1 -0
- package/dist/src/internals/ModalInteraction.js +42 -0
- package/dist/src/internals/ModalInteraction.js.map +1 -0
- package/dist/src/internals/OptionsHandler.d.ts +82 -0
- package/dist/src/internals/OptionsHandler.d.ts.map +1 -0
- package/dist/src/internals/OptionsHandler.js +127 -0
- package/dist/src/internals/OptionsHandler.js.map +1 -0
- package/dist/src/internals/RoleSelectMenuInteraction.d.ts +9 -0
- package/dist/src/internals/RoleSelectMenuInteraction.d.ts.map +1 -0
- package/dist/src/internals/RoleSelectMenuInteraction.js +14 -0
- package/dist/src/internals/RoleSelectMenuInteraction.js.map +1 -0
- package/dist/src/internals/StringSelectMenuInteraction.d.ts +9 -0
- package/dist/src/internals/StringSelectMenuInteraction.d.ts.map +1 -0
- package/dist/src/internals/StringSelectMenuInteraction.js +14 -0
- package/dist/src/internals/StringSelectMenuInteraction.js.map +1 -0
- package/dist/src/internals/UserSelectMenuInteraction.d.ts +9 -0
- package/dist/src/internals/UserSelectMenuInteraction.d.ts.map +1 -0
- package/dist/src/internals/UserSelectMenuInteraction.js +14 -0
- package/dist/src/internals/UserSelectMenuInteraction.js.map +1 -0
- package/dist/src/plugins/linked-roles/LinkedRoles.d.ts +49 -0
- package/dist/src/plugins/linked-roles/LinkedRoles.d.ts.map +1 -0
- package/dist/src/plugins/linked-roles/LinkedRoles.js +164 -0
- package/dist/src/plugins/linked-roles/LinkedRoles.js.map +1 -0
- package/dist/src/plugins/linked-roles/index.d.ts +3 -0
- package/dist/src/plugins/linked-roles/index.d.ts.map +1 -0
- package/dist/src/plugins/linked-roles/index.js +3 -0
- package/dist/src/plugins/linked-roles/index.js.map +1 -0
- package/dist/src/plugins/linked-roles/types.d.ts +88 -0
- package/dist/src/plugins/linked-roles/types.d.ts.map +1 -0
- package/dist/src/plugins/linked-roles/types.js +39 -0
- package/dist/src/plugins/linked-roles/types.js.map +1 -0
- package/dist/src/structures/DmChannel.d.ts +19 -0
- package/dist/src/structures/DmChannel.d.ts.map +1 -0
- package/dist/src/structures/DmChannel.js +25 -0
- package/dist/src/structures/DmChannel.js.map +1 -0
- package/dist/src/structures/GroupDmChannel.d.ts +65 -0
- package/dist/src/structures/GroupDmChannel.d.ts.map +1 -0
- package/dist/src/structures/GroupDmChannel.js +116 -0
- package/dist/src/structures/GroupDmChannel.js.map +1 -0
- package/dist/src/structures/Guild.d.ts +77 -0
- package/dist/src/structures/Guild.d.ts.map +1 -0
- package/dist/src/structures/Guild.js +156 -0
- package/dist/src/structures/Guild.js.map +1 -0
- package/dist/src/structures/GuildAnnouncementChannel.d.ts +11 -0
- package/dist/src/structures/GuildAnnouncementChannel.d.ts.map +1 -0
- package/dist/src/structures/GuildAnnouncementChannel.js +15 -0
- package/dist/src/structures/GuildAnnouncementChannel.js.map +1 -0
- package/dist/src/structures/GuildCategoryChannel.d.ts +13 -0
- package/dist/src/structures/GuildCategoryChannel.d.ts.map +1 -0
- package/dist/src/structures/GuildCategoryChannel.js +13 -0
- package/dist/src/structures/GuildCategoryChannel.js.map +1 -0
- package/dist/src/structures/GuildForumChannel.d.ts +14 -0
- package/dist/src/structures/GuildForumChannel.d.ts.map +1 -0
- package/dist/src/structures/GuildForumChannel.js +15 -0
- package/dist/src/structures/GuildForumChannel.js.map +1 -0
- package/dist/src/structures/GuildMediaChannel.d.ts +9 -0
- package/dist/src/structures/GuildMediaChannel.d.ts.map +1 -0
- package/dist/src/structures/GuildMediaChannel.js +7 -0
- package/dist/src/structures/GuildMediaChannel.js.map +1 -0
- package/dist/src/structures/GuildMember.d.ts +111 -0
- package/dist/src/structures/GuildMember.d.ts.map +1 -0
- package/dist/src/structures/GuildMember.js +224 -0
- package/dist/src/structures/GuildMember.js.map +1 -0
- package/dist/src/structures/GuildStageOrVoiceChannel.d.ts +31 -0
- package/dist/src/structures/GuildStageOrVoiceChannel.d.ts.map +1 -0
- package/dist/src/structures/GuildStageOrVoiceChannel.js +43 -0
- package/dist/src/structures/GuildStageOrVoiceChannel.js.map +1 -0
- package/dist/src/structures/GuildTextChannel.d.ts +15 -0
- package/dist/src/structures/GuildTextChannel.d.ts.map +1 -0
- package/dist/src/structures/GuildTextChannel.js +20 -0
- package/dist/src/structures/GuildTextChannel.js.map +1 -0
- package/dist/src/structures/GuildThreadChannel.d.ts +90 -0
- package/dist/src/structures/GuildThreadChannel.d.ts.map +1 -0
- package/dist/src/structures/GuildThreadChannel.js +165 -0
- package/dist/src/structures/GuildThreadChannel.js.map +1 -0
- package/dist/src/structures/Message.d.ts +153 -0
- package/dist/src/structures/Message.d.ts.map +1 -0
- package/dist/src/structures/Message.js +296 -0
- package/dist/src/structures/Message.js.map +1 -0
- package/dist/src/structures/Role.d.ts +108 -0
- package/dist/src/structures/Role.d.ts.map +1 -0
- package/dist/src/structures/Role.js +220 -0
- package/dist/src/structures/Role.js.map +1 -0
- package/dist/src/structures/User.d.ts +82 -0
- package/dist/src/structures/User.d.ts.map +1 -0
- package/dist/src/structures/User.js +166 -0
- package/dist/src/structures/User.js.map +1 -0
- package/dist/src/types.d.ts +37 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +2 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/utils.d.ts +22 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/utils.js +79 -0
- package/dist/src/utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildAnnouncementChannel.js","sourceRoot":"","sources":["../../../src/structures/GuildAnnouncementChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,MAAM,EACN,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAG3E;;GAEG;AACH,MAAM,OAAO,wBAEX,SAAQ,oBAA8D;IAGvE,KAAK,CAAC,MAAM,CAAC,aAAwC;QACpD,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;YAC5D,IAAI,EAAE;gBACL,kBAAkB,EACjB,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,EAAE;aACrE;SACD,CAAC,CAAA;IACH,CAAC;CACD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { APIGuildCategoryChannel, ChannelType } from "discord-api-types/v10";
|
|
2
|
+
import { BaseGuildChannel } from "../abstracts/BaseGuildChannel.js";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a guild category channel.
|
|
5
|
+
*/
|
|
6
|
+
export declare class GuildCategoryChannel<IsPartial extends boolean = false> extends BaseGuildChannel<ChannelType.GuildCategory, IsPartial> {
|
|
7
|
+
rawData: APIGuildCategoryChannel | null;
|
|
8
|
+
/**
|
|
9
|
+
* You cannot send a message to a category channel, so this method throws an error
|
|
10
|
+
*/
|
|
11
|
+
send(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=GuildCategoryChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildCategoryChannel.d.ts","sourceRoot":"","sources":["../../../src/structures/GuildCategoryChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,WAAW,EACX,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,qBAAa,oBAAoB,CAChC,SAAS,SAAS,OAAO,GAAG,KAAK,CAChC,SAAQ,gBAAgB,CAAC,WAAW,CAAC,aAAa,EAAE,SAAS,CAAC;IACvD,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAA;IAE/C;;OAEG;IACY,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseGuildChannel } from "../abstracts/BaseGuildChannel.js";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a guild category channel.
|
|
4
|
+
*/
|
|
5
|
+
export class GuildCategoryChannel extends BaseGuildChannel {
|
|
6
|
+
/**
|
|
7
|
+
* You cannot send a message to a category channel, so this method throws an error
|
|
8
|
+
*/
|
|
9
|
+
async send() {
|
|
10
|
+
throw new Error("Category channels cannot be sent to");
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=GuildCategoryChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildCategoryChannel.js","sourceRoot":"","sources":["../../../src/structures/GuildCategoryChannel.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAEnE;;GAEG;AACH,MAAM,OAAO,oBAEX,SAAQ,gBAAsD;IAG/D;;OAEG;IACM,KAAK,CAAC,IAAI;QAClB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;IACvD,CAAC;CACD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { APIGuildForumChannel, ChannelType, ForumLayoutType } from "discord-api-types/v10";
|
|
2
|
+
import { GuildThreadOnlyChannel } from "../abstracts/GuildThreadOnlyChannel.js";
|
|
3
|
+
import type { IfPartial } from "../utils.js";
|
|
4
|
+
/**
|
|
5
|
+
* Represents a guild forum channel.
|
|
6
|
+
*/
|
|
7
|
+
export declare class GuildForumChannel<IsPartial extends boolean = false> extends GuildThreadOnlyChannel<ChannelType.GuildForum, IsPartial> {
|
|
8
|
+
rawData: APIGuildForumChannel | null;
|
|
9
|
+
/**
|
|
10
|
+
* The default forum layout of the channel.
|
|
11
|
+
*/
|
|
12
|
+
get defaultForumLayout(): IfPartial<IsPartial, ForumLayoutType | null>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=GuildForumChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildForumChannel.d.ts","sourceRoot":"","sources":["../../../src/structures/GuildForumChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,WAAW,EACX,eAAe,EACf,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;GAEG;AACH,qBAAa,iBAAiB,CAC7B,SAAS,SAAS,OAAO,GAAG,KAAK,CAChC,SAAQ,sBAAsB,CAAC,WAAW,CAAC,UAAU,EAAE,SAAS,CAAC;IAC1D,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAA;IAE5C;;OAEG;IACH,IAAI,kBAAkB,IAAI,SAAS,CAAC,SAAS,EAAE,eAAe,GAAG,IAAI,CAAC,CAGrE;CACD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GuildThreadOnlyChannel } from "../abstracts/GuildThreadOnlyChannel.js";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a guild forum channel.
|
|
4
|
+
*/
|
|
5
|
+
export class GuildForumChannel extends GuildThreadOnlyChannel {
|
|
6
|
+
/**
|
|
7
|
+
* The default forum layout of the channel.
|
|
8
|
+
*/
|
|
9
|
+
get defaultForumLayout() {
|
|
10
|
+
if (!this.rawData)
|
|
11
|
+
return undefined;
|
|
12
|
+
return this.rawData.default_forum_layout;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=GuildForumChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildForumChannel.js","sourceRoot":"","sources":["../../../src/structures/GuildForumChannel.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAG/E;;GAEG;AACH,MAAM,OAAO,iBAEX,SAAQ,sBAAyD;IAGlE;;OAEG;IACH,IAAI,kBAAkB;QACrB,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,oBAA6B,CAAA;IAClD,CAAC;CACD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { APIGuildMediaChannel, ChannelType } from "discord-api-types/v10";
|
|
2
|
+
import { GuildThreadOnlyChannel } from "../abstracts/GuildThreadOnlyChannel.js";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a guild media channel (a forum channel)
|
|
5
|
+
*/
|
|
6
|
+
export declare class GuildMediaChannel extends GuildThreadOnlyChannel<ChannelType.GuildMedia> {
|
|
7
|
+
rawData: APIGuildMediaChannel | null;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=GuildMediaChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildMediaChannel.d.ts","sourceRoot":"","sources":["../../../src/structures/GuildMediaChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAE/E;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,sBAAsB,CAAC,WAAW,CAAC,UAAU,CAAC;IAC5E,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAC5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildMediaChannel.js","sourceRoot":"","sources":["../../../src/structures/GuildMediaChannel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAA;AAE/E;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,sBAA8C;CAEpF"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { APIGuildMember, GuildMemberFlags } from "discord-api-types/v10";
|
|
2
|
+
import { Base } from "../abstracts/Base.js";
|
|
3
|
+
import type { Client } from "../classes/Client.js";
|
|
4
|
+
import type { IfPartial } from "../utils.js";
|
|
5
|
+
import type { Guild } from "./Guild.js";
|
|
6
|
+
import { Role } from "./Role.js";
|
|
7
|
+
import { User } from "./User.js";
|
|
8
|
+
export declare class GuildMember<IsPartial extends false = false, IsGuildPartial extends boolean = false> extends Base {
|
|
9
|
+
constructor(client: Client, rawData: APIGuildMember, guild: Guild<IsGuildPartial>);
|
|
10
|
+
private rawData;
|
|
11
|
+
private setData;
|
|
12
|
+
private setField;
|
|
13
|
+
/**
|
|
14
|
+
* The guild object of the member.
|
|
15
|
+
*/
|
|
16
|
+
guild: Guild<IsGuildPartial>;
|
|
17
|
+
/**
|
|
18
|
+
* The user object of the member.
|
|
19
|
+
*/
|
|
20
|
+
user: User;
|
|
21
|
+
/**
|
|
22
|
+
* The guild-specific nickname of the member.
|
|
23
|
+
*/
|
|
24
|
+
get nickname(): IfPartial<IsPartial, string | null>;
|
|
25
|
+
/**
|
|
26
|
+
* The guild-specific avatar hash of the member.
|
|
27
|
+
* You can use {@link GuildMember.avatarUrl} to get the URL of the avatar.
|
|
28
|
+
*/
|
|
29
|
+
get avatar(): IfPartial<IsPartial, string | null>;
|
|
30
|
+
/**
|
|
31
|
+
* Get the URL of the member's guild-specific avatar
|
|
32
|
+
*/
|
|
33
|
+
get avatarUrl(): IfPartial<IsPartial, string | null>;
|
|
34
|
+
/**
|
|
35
|
+
* Is this member muted in Voice Channels?
|
|
36
|
+
*/
|
|
37
|
+
get mute(): IfPartial<IsPartial, boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Is this member deafened in Voice Channels?
|
|
40
|
+
*/
|
|
41
|
+
get deaf(): IfPartial<IsPartial, boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* The date since this member boosted the guild, if applicable.
|
|
44
|
+
*/
|
|
45
|
+
get premiumSince(): IfPartial<IsPartial, string | null>;
|
|
46
|
+
/**
|
|
47
|
+
* The flags of the member.
|
|
48
|
+
* @see https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags
|
|
49
|
+
*/
|
|
50
|
+
get flags(): IfPartial<IsPartial, GuildMemberFlags>;
|
|
51
|
+
/**
|
|
52
|
+
* The roles of the member
|
|
53
|
+
*/
|
|
54
|
+
get roles(): IfPartial<IsPartial, Role<true>[]>;
|
|
55
|
+
/**
|
|
56
|
+
* The joined date of the member
|
|
57
|
+
*/
|
|
58
|
+
get joinedAt(): IfPartial<IsPartial, string>;
|
|
59
|
+
/**
|
|
60
|
+
* The date when the member's communication privileges (timeout) will be reinstated
|
|
61
|
+
*/
|
|
62
|
+
get communicationDisabledUntil(): IfPartial<IsPartial, string | null>;
|
|
63
|
+
/**
|
|
64
|
+
* Is this member yet to pass the guild's Membership Screening requirements?
|
|
65
|
+
*/
|
|
66
|
+
get pending(): IfPartial<IsPartial, boolean>;
|
|
67
|
+
/**
|
|
68
|
+
* Set the nickname of the member
|
|
69
|
+
*/
|
|
70
|
+
setNickname(nickname: string | null): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Add a role to the member
|
|
73
|
+
*/
|
|
74
|
+
addRole(roleId: string): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Remove a role from the member
|
|
77
|
+
*/
|
|
78
|
+
removeRole(roleId: string): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Kick the member from the guild
|
|
81
|
+
*/
|
|
82
|
+
kick(): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Ban the member from the guild
|
|
85
|
+
*/
|
|
86
|
+
ban(options?: {
|
|
87
|
+
reason?: string;
|
|
88
|
+
deleteMessageDays?: number;
|
|
89
|
+
}): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Mute a member in voice channels
|
|
92
|
+
*/
|
|
93
|
+
muteMember(): Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Unmute a member in voice channels
|
|
96
|
+
*/
|
|
97
|
+
unmuteMember(): Promise<void>;
|
|
98
|
+
/**
|
|
99
|
+
* Deafen a member in voice channels
|
|
100
|
+
*/
|
|
101
|
+
deafenMember(): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Undeafen a member in voice channels
|
|
104
|
+
*/
|
|
105
|
+
undeafenMember(): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Set or remove a timeout for a member in the guild
|
|
108
|
+
*/
|
|
109
|
+
timeoutMember(communicationDisabledUntil: string): Promise<void>;
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=GuildMember.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildMember.d.ts","sourceRoot":"","sources":["../../../src/structures/GuildMember.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,qBAAa,WAAW,CAEvB,SAAS,SAAS,KAAK,GAAG,KAA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AAI,OAAO,IAAI,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC,CAG3C;IAED;;OAEG;IACG,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAYzD;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ5C;;OAEG;IACG,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/C;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAM3B;;OAEG;IACG,GAAG,CACR,OAAO,GAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,iBAAiB,CAAC,EAAE,MAAM,CAAA;KAAO,GAC3D,OAAO,CAAC,IAAI,CAAC;IAYhB;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAYjC;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAYnC;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAYnC;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAYrC;;OAEG;IACG,aAAa,CAAC,0BAA0B,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAWtE"}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { Base } from "../abstracts/Base.js";
|
|
2
|
+
import { Role } from "./Role.js";
|
|
3
|
+
import { User } from "./User.js";
|
|
4
|
+
export class GuildMember extends Base {
|
|
5
|
+
constructor(client, rawData, guild) {
|
|
6
|
+
super(client);
|
|
7
|
+
this.rawData = rawData;
|
|
8
|
+
this.guild = guild;
|
|
9
|
+
this.user = new User(client, rawData.user);
|
|
10
|
+
this.setData(rawData);
|
|
11
|
+
}
|
|
12
|
+
rawData = null;
|
|
13
|
+
setData(data) {
|
|
14
|
+
if (!data)
|
|
15
|
+
throw new Error("Cannot set data without having data... smh");
|
|
16
|
+
this.rawData = data;
|
|
17
|
+
}
|
|
18
|
+
setField(key, value) {
|
|
19
|
+
if (!this.rawData)
|
|
20
|
+
throw new Error("Cannot set field without having data... smh");
|
|
21
|
+
Reflect.set(this.rawData, key, value);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The guild object of the member.
|
|
25
|
+
*/
|
|
26
|
+
guild;
|
|
27
|
+
/**
|
|
28
|
+
* The user object of the member.
|
|
29
|
+
*/
|
|
30
|
+
user;
|
|
31
|
+
/**
|
|
32
|
+
* The guild-specific nickname of the member.
|
|
33
|
+
*/
|
|
34
|
+
get nickname() {
|
|
35
|
+
if (!this.rawData)
|
|
36
|
+
return undefined;
|
|
37
|
+
return this.rawData.nick ?? null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The guild-specific avatar hash of the member.
|
|
41
|
+
* You can use {@link GuildMember.avatarUrl} to get the URL of the avatar.
|
|
42
|
+
*/
|
|
43
|
+
get avatar() {
|
|
44
|
+
if (!this.rawData)
|
|
45
|
+
return undefined;
|
|
46
|
+
return this.rawData.avatar ?? null;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Get the URL of the member's guild-specific avatar
|
|
50
|
+
*/
|
|
51
|
+
get avatarUrl() {
|
|
52
|
+
if (!this.rawData)
|
|
53
|
+
return undefined;
|
|
54
|
+
if (!this.user || !this.avatar)
|
|
55
|
+
return null;
|
|
56
|
+
return `https://cdn.discordapp.com/guilds/${this.guild.id}/users/${this.user.id}/${this.avatar}.png`;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Is this member muted in Voice Channels?
|
|
60
|
+
*/
|
|
61
|
+
get mute() {
|
|
62
|
+
if (!this.rawData)
|
|
63
|
+
return undefined;
|
|
64
|
+
return this.rawData.mute;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Is this member deafened in Voice Channels?
|
|
68
|
+
*/
|
|
69
|
+
get deaf() {
|
|
70
|
+
if (!this.rawData)
|
|
71
|
+
return undefined;
|
|
72
|
+
return this.rawData.deaf;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The date since this member boosted the guild, if applicable.
|
|
76
|
+
*/
|
|
77
|
+
get premiumSince() {
|
|
78
|
+
if (!this.rawData)
|
|
79
|
+
return undefined;
|
|
80
|
+
return this.rawData.premium_since ?? null;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The flags of the member.
|
|
84
|
+
* @see https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags
|
|
85
|
+
*/
|
|
86
|
+
get flags() {
|
|
87
|
+
if (!this.rawData)
|
|
88
|
+
return undefined;
|
|
89
|
+
return this.rawData.flags;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The roles of the member
|
|
93
|
+
*/
|
|
94
|
+
get roles() {
|
|
95
|
+
if (!this.rawData)
|
|
96
|
+
return undefined;
|
|
97
|
+
const roles = this.rawData.roles ?? [];
|
|
98
|
+
return roles.map((role) => new Role(this.client, role));
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* The joined date of the member
|
|
102
|
+
*/
|
|
103
|
+
get joinedAt() {
|
|
104
|
+
if (!this.rawData)
|
|
105
|
+
return undefined;
|
|
106
|
+
return this.rawData.joined_at;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The date when the member's communication privileges (timeout) will be reinstated
|
|
110
|
+
*/
|
|
111
|
+
get communicationDisabledUntil() {
|
|
112
|
+
if (!this.rawData)
|
|
113
|
+
return undefined;
|
|
114
|
+
return this.rawData.communication_disabled_until ?? null;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Is this member yet to pass the guild's Membership Screening requirements?
|
|
118
|
+
*/
|
|
119
|
+
get pending() {
|
|
120
|
+
if (!this.rawData)
|
|
121
|
+
return undefined;
|
|
122
|
+
return this.rawData.pending ?? false;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Set the nickname of the member
|
|
126
|
+
*/
|
|
127
|
+
async setNickname(nickname) {
|
|
128
|
+
await this.client.rest.patch(`/guilds/${this.guild?.id}/members/${this.user?.id}`, {
|
|
129
|
+
body: {
|
|
130
|
+
nick: nickname
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
this.setField("nick", nickname);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Add a role to the member
|
|
137
|
+
*/
|
|
138
|
+
async addRole(roleId) {
|
|
139
|
+
await this.client.rest.put(`/guilds/${this.guild?.id}/members/${this.user?.id}/roles/${roleId}`, {});
|
|
140
|
+
this.roles?.push(new Role(this.client, roleId));
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Remove a role from the member
|
|
144
|
+
*/
|
|
145
|
+
async removeRole(roleId) {
|
|
146
|
+
await this.client.rest.delete(`/guilds/${this.guild?.id}/members/${this.user?.id}/roles/${roleId}`);
|
|
147
|
+
const roles = this.roles?.filter((role) => role.id !== roleId);
|
|
148
|
+
if (roles)
|
|
149
|
+
this.setField("roles", roles);
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Kick the member from the guild
|
|
153
|
+
*/
|
|
154
|
+
async kick() {
|
|
155
|
+
await this.client.rest.delete(`/guilds/${this.guild?.id}/members/${this.user?.id}`);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Ban the member from the guild
|
|
159
|
+
*/
|
|
160
|
+
async ban(options = {}) {
|
|
161
|
+
await this.client.rest.put(`/guilds/${this.guild?.id}/bans/${this.user?.id}`, {
|
|
162
|
+
body: {
|
|
163
|
+
reason: options.reason,
|
|
164
|
+
delete_message_days: options.deleteMessageDays
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Mute a member in voice channels
|
|
170
|
+
*/
|
|
171
|
+
async muteMember() {
|
|
172
|
+
await this.client.rest.patch(`/guilds/${this.guild?.id}/members/${this.user?.id}`, {
|
|
173
|
+
body: {
|
|
174
|
+
mute: true
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
this.setField("mute", true);
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Unmute a member in voice channels
|
|
181
|
+
*/
|
|
182
|
+
async unmuteMember() {
|
|
183
|
+
await this.client.rest.patch(`/guilds/${this.guild?.id}/members/${this.user?.id}`, {
|
|
184
|
+
body: {
|
|
185
|
+
mute: false
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
this.setField("mute", false);
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Deafen a member in voice channels
|
|
192
|
+
*/
|
|
193
|
+
async deafenMember() {
|
|
194
|
+
await this.client.rest.patch(`/guilds/${this.guild?.id}/members/${this.user?.id}`, {
|
|
195
|
+
body: {
|
|
196
|
+
deaf: true
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
this.setField("deaf", true);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Undeafen a member in voice channels
|
|
203
|
+
*/
|
|
204
|
+
async undeafenMember() {
|
|
205
|
+
await this.client.rest.patch(`/guilds/${this.guild?.id}/members/${this.user?.id}`, {
|
|
206
|
+
body: {
|
|
207
|
+
deaf: false
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
this.setField("deaf", false);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Set or remove a timeout for a member in the guild
|
|
214
|
+
*/
|
|
215
|
+
async timeoutMember(communicationDisabledUntil) {
|
|
216
|
+
await this.client.rest.patch(`/guilds/${this.guild?.id}/members/${this.user?.id}`, {
|
|
217
|
+
body: {
|
|
218
|
+
communication_disabled_until: communicationDisabledUntil
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
this.setField("communication_disabled_until", communicationDisabledUntil);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=GuildMember.js.map
|
|
@@ -0,0 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AI,CAAC,IAAI,EAAE,EAAE,EAAE,EACpD;YACC,IAAI,EAAE;gBACL,4BAA4B,EAAE,0BAA0B;aACxD;SACD,CACD,CAAA;QACD,IAAI,CAAC,QAAQ,CAAC,8BAA8B,EAAE,0BAA0B,CAAC,CAAA;IAC1E,CAAC;CACD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type APIGuildStageVoiceChannel, type APIGuildVoiceChannel, type ChannelType, VideoQualityMode } from "discord-api-types/v10";
|
|
2
|
+
import { BaseGuildChannel } from "../abstracts/BaseGuildChannel.js";
|
|
3
|
+
import type { IfPartial } from "../utils.js";
|
|
4
|
+
export declare abstract class GuildStageOrVoiceChannel<Type extends ChannelType.GuildStageVoice | ChannelType.GuildVoice, IsPartial extends boolean = false> extends BaseGuildChannel<Type, IsPartial> {
|
|
5
|
+
rawData: APIGuildStageVoiceChannel | APIGuildVoiceChannel | null;
|
|
6
|
+
/**
|
|
7
|
+
* The bitrate of the channel.
|
|
8
|
+
*/
|
|
9
|
+
get bitrate(): IfPartial<IsPartial, number | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* The user limit of the channel.
|
|
12
|
+
*/
|
|
13
|
+
get userLimit(): IfPartial<IsPartial, number | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* The RTC region of the channel.
|
|
16
|
+
* This is automatic when set to `null`.
|
|
17
|
+
*/
|
|
18
|
+
get rtcRegion(): IfPartial<IsPartial, string | null>;
|
|
19
|
+
/**
|
|
20
|
+
* The video quality mode of the channel.
|
|
21
|
+
* 1 when not present.
|
|
22
|
+
*/
|
|
23
|
+
get videoQualityMode(): IfPartial<IsPartial, VideoQualityMode>;
|
|
24
|
+
}
|
|
25
|
+
export declare class GuildStageChannel<IsPartial extends boolean = false> extends GuildStageOrVoiceChannel<ChannelType.GuildStageVoice, IsPartial> {
|
|
26
|
+
rawData: APIGuildStageVoiceChannel | null;
|
|
27
|
+
}
|
|
28
|
+
export declare class GuildVoiceChannel<IsPartial extends boolean = false> extends GuildStageOrVoiceChannel<ChannelType.GuildVoice, IsPartial> {
|
|
29
|
+
rawData: APIGuildVoiceChannel | null;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=GuildStageOrVoiceChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildStageOrVoiceChannel.d.ts","sourceRoot":"","sources":["../../../src/structures/GuildStageOrVoiceChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,WAAW,EAChB,gBAAgB,EAChB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,8BAAsB,wBAAwB,CAC7C,IAAI,SAAS,WAAW,CAAC,eAAe,GAAG,WAAW,CAAC,UAAU,EACjE,SAAS,SAAS,OAAO,GAAG,KAAK,CAChC,SAAQ,gBAAgB,CAAC,IAAI,EAAE,SAAS,CAAC;IAElC,OAAO,EAAE,yBAAyB,GAAG,oBAAoB,GAAG,IAAI,CAAA;IAExE;;OAEG;IACH,IAAI,OAAO,IAAI,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC,CAGtD;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC,CAGxD;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,CAGnD;IAED;;;OAGG;IACH,IAAI,gBAAgB,IAAI,SAAS,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAG7D;CACD;AAED,qBAAa,iBAAiB,CAC7B,SAAS,SAAS,OAAO,GAAG,KAAK,CAChC,SAAQ,wBAAwB,CAAC,WAAW,CAAC,eAAe,EAAE,SAAS,CAAC;IACjE,OAAO,EAAE,yBAAyB,GAAG,IAAI,CAAA;CACjD;AACD,qBAAa,iBAAiB,CAC7B,SAAS,SAAS,OAAO,GAAG,KAAK,CAChC,SAAQ,wBAAwB,CAAC,WAAW,CAAC,UAAU,EAAE,SAAS,CAAC;IAC5D,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAA;CAC5C"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { VideoQualityMode } from "discord-api-types/v10";
|
|
2
|
+
import { BaseGuildChannel } from "../abstracts/BaseGuildChannel.js";
|
|
3
|
+
export class GuildStageOrVoiceChannel extends BaseGuildChannel {
|
|
4
|
+
/**
|
|
5
|
+
* The bitrate of the channel.
|
|
6
|
+
*/
|
|
7
|
+
get bitrate() {
|
|
8
|
+
if (!this.rawData)
|
|
9
|
+
return undefined;
|
|
10
|
+
return this.rawData.bitrate;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The user limit of the channel.
|
|
14
|
+
*/
|
|
15
|
+
get userLimit() {
|
|
16
|
+
if (!this.rawData)
|
|
17
|
+
return undefined;
|
|
18
|
+
return this.rawData.user_limit;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The RTC region of the channel.
|
|
22
|
+
* This is automatic when set to `null`.
|
|
23
|
+
*/
|
|
24
|
+
get rtcRegion() {
|
|
25
|
+
if (!this.rawData)
|
|
26
|
+
return undefined;
|
|
27
|
+
return this.rawData.rtc_region ?? null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* The video quality mode of the channel.
|
|
31
|
+
* 1 when not present.
|
|
32
|
+
*/
|
|
33
|
+
get videoQualityMode() {
|
|
34
|
+
if (!this.rawData)
|
|
35
|
+
return undefined;
|
|
36
|
+
return this.rawData.video_quality_mode ?? VideoQualityMode.Auto;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class GuildStageChannel extends GuildStageOrVoiceChannel {
|
|
40
|
+
}
|
|
41
|
+
export class GuildVoiceChannel extends GuildStageOrVoiceChannel {
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=GuildStageOrVoiceChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildStageOrVoiceChannel.js","sourceRoot":"","sources":["../../../src/structures/GuildStageOrVoiceChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,gBAAgB,EAChB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAGnE,MAAM,OAAgB,wBAGpB,SAAQ,gBAAiC;IAI1C;;OAEG;IACH,IAAI,OAAO;QACV,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAA;IAC5B,CAAC;IAED;;OAEG;IACH,IAAI,SAAS;QACZ,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAA;IAC/B,CAAC;IAED;;;OAGG;IACH,IAAI,SAAS;QACZ,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,IAAI,CAAA;IACvC,CAAC;IAED;;;OAGG;IACH,IAAI,gBAAgB;QACnB,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,IAAI,gBAAgB,CAAC,IAAI,CAAA;IAChE,CAAC;CACD;AAED,MAAM,OAAO,iBAEX,SAAQ,wBAAgE;CAEzE;AACD,MAAM,OAAO,iBAEX,SAAQ,wBAA2D;CAEpE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { APIGuildTextChannel, ChannelType } from "discord-api-types/v10";
|
|
2
|
+
import { BaseGuildTextChannel } from "../abstracts/BaseGuildTextChannel.js";
|
|
3
|
+
import type { IfPartial } from "../utils.js";
|
|
4
|
+
export declare class GuildTextChannel<IsPartial extends boolean = false> extends BaseGuildTextChannel<ChannelType.GuildText, IsPartial> {
|
|
5
|
+
rawData: APIGuildTextChannel<ChannelType.GuildText> | null;
|
|
6
|
+
/**
|
|
7
|
+
* The default auto archive duration of threads in the channel.
|
|
8
|
+
*/
|
|
9
|
+
get defaultAutoArchiveDuration(): IfPartial<IsPartial, number | null>;
|
|
10
|
+
/**
|
|
11
|
+
* The default thread rate limit per user of the channel.
|
|
12
|
+
*/
|
|
13
|
+
get defaultThreadRateLimitPerUser(): IfPartial<IsPartial, number | null>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=GuildTextChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildTextChannel.d.ts","sourceRoot":"","sources":["../../../src/structures/GuildTextChannel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,qBAAa,gBAAgB,CAC5B,SAAS,SAAS,OAAO,GAAG,KAAK,CAChC,SAAQ,oBAAoB,CAAC,WAAW,CAAC,SAAS,EAAE,SAAS,CAAC;IACvD,OAAO,EAAE,mBAAmB,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;IAElE;;OAEG;IACH,IAAI,0BAA0B,IAAI,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,CAGpE;IAED;;OAEG;IACH,IAAI,6BAA6B,IAAI,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,CAGvE;CACD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseGuildTextChannel } from "../abstracts/BaseGuildTextChannel.js";
|
|
2
|
+
export class GuildTextChannel extends BaseGuildTextChannel {
|
|
3
|
+
/**
|
|
4
|
+
* The default auto archive duration of threads in the channel.
|
|
5
|
+
*/
|
|
6
|
+
get defaultAutoArchiveDuration() {
|
|
7
|
+
if (!this.rawData)
|
|
8
|
+
return undefined;
|
|
9
|
+
return this.rawData.default_auto_archive_duration ?? null;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The default thread rate limit per user of the channel.
|
|
13
|
+
*/
|
|
14
|
+
get defaultThreadRateLimitPerUser() {
|
|
15
|
+
if (!this.rawData)
|
|
16
|
+
return undefined;
|
|
17
|
+
return this.rawData.default_thread_rate_limit_per_user ?? null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=GuildTextChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildTextChannel.js","sourceRoot":"","sources":["../../../src/structures/GuildTextChannel.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAG3E,MAAM,OAAO,gBAEX,SAAQ,oBAAsD;IAG/D;;OAEG;IACH,IAAI,0BAA0B;QAC7B,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,6BAA6B,IAAI,IAAI,CAAA;IAC1D,CAAC;IAED;;OAEG;IACH,IAAI,6BAA6B;QAChC,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,kCAAkC,IAAI,IAAI,CAAA;IAC/D,CAAC;CACD"}
|