@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,90 @@
|
|
|
1
|
+
import { type APIThreadChannel, type ThreadChannelType } from "discord-api-types/v10";
|
|
2
|
+
import { BaseGuildChannel } from "../abstracts/BaseGuildChannel.js";
|
|
3
|
+
import type { IfPartial } from "../utils.js";
|
|
4
|
+
export declare class GuildThreadChannel<Type extends ThreadChannelType, IsPartial extends boolean = false> extends BaseGuildChannel<Type, IsPartial> {
|
|
5
|
+
rawData: APIThreadChannel | null;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the thread is archived.
|
|
8
|
+
*/
|
|
9
|
+
get archived(): IfPartial<IsPartial, boolean | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* The duration until the thread is auto archived.
|
|
12
|
+
*/
|
|
13
|
+
get autoArchiveDuration(): IfPartial<IsPartial, number | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* The timestamp of when the thread was archived.
|
|
16
|
+
*/
|
|
17
|
+
get archiveTimestamp(): IfPartial<IsPartial, string | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the thread is locked.
|
|
20
|
+
*/
|
|
21
|
+
get locked(): IfPartial<IsPartial, boolean | undefined>;
|
|
22
|
+
/**
|
|
23
|
+
* Whether non-moderators can add other non-moderators to a thread; only available on private threads
|
|
24
|
+
*/
|
|
25
|
+
get invitable(): IfPartial<IsPartial, boolean | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* The timestamp of when the thread was created.
|
|
28
|
+
*/
|
|
29
|
+
get createTimestamp(): IfPartial<IsPartial, string | undefined>;
|
|
30
|
+
/**
|
|
31
|
+
* The number of messages in the thread.
|
|
32
|
+
*/
|
|
33
|
+
get messageCount(): IfPartial<IsPartial, number | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The number of members in the thread.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* This is only accurate until 50, after that, Discord stops counting.
|
|
39
|
+
*/
|
|
40
|
+
get memberCount(): IfPartial<IsPartial, number | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the owner of the thread.
|
|
43
|
+
*/
|
|
44
|
+
get ownerId(): IfPartial<IsPartial, string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* The number of messages sent in the thread.
|
|
47
|
+
*/
|
|
48
|
+
get totalMessageSent(): IfPartial<IsPartial, number | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* The tags applied to the thread.
|
|
51
|
+
*/
|
|
52
|
+
get appliedTags(): IfPartial<IsPartial, string[]>;
|
|
53
|
+
/**
|
|
54
|
+
* Join the thread
|
|
55
|
+
*/
|
|
56
|
+
join(): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Add a member to the thread
|
|
59
|
+
*/
|
|
60
|
+
addMember(userId: string): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Leave the thread
|
|
63
|
+
*/
|
|
64
|
+
leave(): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Get the pinned messages in the thread
|
|
67
|
+
*/
|
|
68
|
+
removeMember(userId: string): Promise<void>;
|
|
69
|
+
/**
|
|
70
|
+
* Archive the thread
|
|
71
|
+
*/
|
|
72
|
+
archive(): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Unarchive the thread
|
|
75
|
+
*/
|
|
76
|
+
unarchive(): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
* Set the auto archive duration of the thread
|
|
79
|
+
*/
|
|
80
|
+
setAutoArchiveDuration(duration: number): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Lock the thread
|
|
83
|
+
*/
|
|
84
|
+
lock(): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Unlock the thread
|
|
87
|
+
*/
|
|
88
|
+
unlock(): Promise<void>;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=GuildThreadChannel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildThreadChannel.d.ts","sourceRoot":"","sources":["../../../src/structures/GuildThreadChannel.ts"],"names":[],"mappings":"AAAA,O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AC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC,CAG/D;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC,CAGhD;IAED;;OAEG;IACG,IAAI;IAIV;;OAEG;IACG,SAAS,CAAC,MAAM,EAAE,MAAM;IAI9B;;OAEG;IACG,KAAK;IAIX;;OAEG;IACG,YAAY,CAAC,MAAM,EAAE,MAAM;IAIjC;;OAEG;IACG,OAAO;IAOb;;OAEG;IACG,SAAS;IAOf;;OAEG;IACG,sBAAsB,CAAC,QAAQ,EAAE,MAAM;IAW7C;;OAEG;IACG,IAAI;IAOV;;OAEG;IACG,MAAM;CAMZ"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { Routes } from "discord-api-types/v10";
|
|
2
|
+
import { BaseGuildChannel } from "../abstracts/BaseGuildChannel.js";
|
|
3
|
+
export class GuildThreadChannel extends BaseGuildChannel {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the thread is archived.
|
|
6
|
+
*/
|
|
7
|
+
get archived() {
|
|
8
|
+
if (!this.rawData)
|
|
9
|
+
return undefined;
|
|
10
|
+
return this.rawData.thread_metadata?.archived;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The duration until the thread is auto archived.
|
|
14
|
+
*/
|
|
15
|
+
get autoArchiveDuration() {
|
|
16
|
+
if (!this.rawData)
|
|
17
|
+
return undefined;
|
|
18
|
+
return this.rawData.thread_metadata?.auto_archive_duration;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The timestamp of when the thread was archived.
|
|
22
|
+
*/
|
|
23
|
+
get archiveTimestamp() {
|
|
24
|
+
if (!this.rawData)
|
|
25
|
+
return undefined;
|
|
26
|
+
return this.rawData.thread_metadata?.archive_timestamp;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Whether the thread is locked.
|
|
30
|
+
*/
|
|
31
|
+
get locked() {
|
|
32
|
+
if (!this.rawData)
|
|
33
|
+
return undefined;
|
|
34
|
+
return this.rawData.thread_metadata?.locked;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Whether non-moderators can add other non-moderators to a thread; only available on private threads
|
|
38
|
+
*/
|
|
39
|
+
get invitable() {
|
|
40
|
+
if (!this.rawData)
|
|
41
|
+
return undefined;
|
|
42
|
+
return this.rawData.thread_metadata?.invitable;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* The timestamp of when the thread was created.
|
|
46
|
+
*/
|
|
47
|
+
get createTimestamp() {
|
|
48
|
+
if (!this.rawData)
|
|
49
|
+
return undefined;
|
|
50
|
+
return this.rawData.thread_metadata?.create_timestamp;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* The number of messages in the thread.
|
|
54
|
+
*/
|
|
55
|
+
get messageCount() {
|
|
56
|
+
if (!this.rawData)
|
|
57
|
+
return undefined;
|
|
58
|
+
return this.rawData.message_count;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The number of members in the thread.
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* This is only accurate until 50, after that, Discord stops counting.
|
|
65
|
+
*/
|
|
66
|
+
get memberCount() {
|
|
67
|
+
if (!this.rawData)
|
|
68
|
+
return undefined;
|
|
69
|
+
return this.rawData.member_count;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The ID of the owner of the thread.
|
|
73
|
+
*/
|
|
74
|
+
get ownerId() {
|
|
75
|
+
if (!this.rawData)
|
|
76
|
+
return undefined;
|
|
77
|
+
return this.rawData.owner_id;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The number of messages sent in the thread.
|
|
81
|
+
*/
|
|
82
|
+
get totalMessageSent() {
|
|
83
|
+
if (!this.rawData)
|
|
84
|
+
return undefined;
|
|
85
|
+
return this.rawData.total_message_sent;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The tags applied to the thread.
|
|
89
|
+
*/
|
|
90
|
+
get appliedTags() {
|
|
91
|
+
if (!this.rawData)
|
|
92
|
+
return undefined;
|
|
93
|
+
return this.rawData.applied_tags;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Join the thread
|
|
97
|
+
*/
|
|
98
|
+
async join() {
|
|
99
|
+
await this.addMember("@me");
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Add a member to the thread
|
|
103
|
+
*/
|
|
104
|
+
async addMember(userId) {
|
|
105
|
+
await this.client.rest.put(Routes.threadMembers(this.id, userId));
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Leave the thread
|
|
109
|
+
*/
|
|
110
|
+
async leave() {
|
|
111
|
+
await this.removeMember("@me");
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Get the pinned messages in the thread
|
|
115
|
+
*/
|
|
116
|
+
async removeMember(userId) {
|
|
117
|
+
await this.client.rest.delete(Routes.threadMembers(this.id, userId));
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Archive the thread
|
|
121
|
+
*/
|
|
122
|
+
async archive() {
|
|
123
|
+
await this.client.rest.patch(Routes.channel(this.id), {
|
|
124
|
+
body: { archive: true }
|
|
125
|
+
});
|
|
126
|
+
Reflect.set(this.rawData?.thread_metadata ?? {}, "archived", true);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Unarchive the thread
|
|
130
|
+
*/
|
|
131
|
+
async unarchive() {
|
|
132
|
+
await this.client.rest.patch(Routes.channel(this.id), {
|
|
133
|
+
body: { archive: false }
|
|
134
|
+
});
|
|
135
|
+
Reflect.set(this.rawData?.thread_metadata ?? {}, "archived", false);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Set the auto archive duration of the thread
|
|
139
|
+
*/
|
|
140
|
+
async setAutoArchiveDuration(duration) {
|
|
141
|
+
await this.client.rest.patch(Routes.channel(this.id), {
|
|
142
|
+
body: { auto_archive_duration: duration }
|
|
143
|
+
});
|
|
144
|
+
Reflect.set(this.rawData?.thread_metadata ?? {}, "auto_archive_duration", duration);
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Lock the thread
|
|
148
|
+
*/
|
|
149
|
+
async lock() {
|
|
150
|
+
await this.client.rest.put(Routes.channel(this.id), {
|
|
151
|
+
body: { locked: true }
|
|
152
|
+
});
|
|
153
|
+
Reflect.set(this.rawData?.thread_metadata ?? {}, "locked", true);
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Unlock the thread
|
|
157
|
+
*/
|
|
158
|
+
async unlock() {
|
|
159
|
+
await this.client.rest.put(Routes.channel(this.id), {
|
|
160
|
+
body: { locked: false }
|
|
161
|
+
});
|
|
162
|
+
Reflect.set(this.rawData?.thread_metadata ?? {}, "locked", false);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=GuildThreadChannel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GuildThreadChannel.js","sourceRoot":"","sources":["../../../src/structures/GuildThreadChannel.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,MAAM,EAEN,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAGnE,MAAM,OAAO,kBAGX,SAAQ,gBAAiC;IAI1C;;OAEG;IACH,IAAI,QAAQ;QACX,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,QAAQ,CAAA;IAC9C,CAAC;IAED;;OAEG;IACH,IAAI,mBAAmB;QACtB,IAAI,CAAC,IAAI,CAAC,OAAO;YAAE,OAAO,SAAkB,CAAA;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,qBAAqB,CAAA;IAC3D,CAAC;IAED;;OAEG;IACH,IAAI,gBAAgB;QACnB,IAAI,C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|
1
|
+
import { type APIAllowedMentions, type APIAttachment, type APIMessage, type APIMessageInteractionMetadata, type APIMessageReference, type APIPoll, type APIReaction, type APIStickerItem, type ChannelType, type MessageFlags, type MessageType, type RESTPostAPIChannelThreadsJSONBody } from "discord-api-types/v10";
|
|
2
|
+
import { Base } from "../abstracts/Base.js";
|
|
3
|
+
import type { Client } from "../classes/Client.js";
|
|
4
|
+
import { Embed } from "../classes/Embed.js";
|
|
5
|
+
import type { Row } from "../classes/Row.js";
|
|
6
|
+
import type { IfPartial } from "../utils.js";
|
|
7
|
+
import { GuildThreadChannel } from "./GuildThreadChannel.js";
|
|
8
|
+
import { Role } from "./Role.js";
|
|
9
|
+
import { User } from "./User.js";
|
|
10
|
+
export declare class Message<IsPartial extends boolean = false> extends Base {
|
|
11
|
+
constructor(client: Client, rawDataOrIds: IsPartial extends true ? {
|
|
12
|
+
id: string;
|
|
13
|
+
channelId: string;
|
|
14
|
+
} : APIMessage);
|
|
15
|
+
private rawData;
|
|
16
|
+
private setData;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the message
|
|
19
|
+
*/
|
|
20
|
+
readonly id: string;
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the channel the message is in
|
|
23
|
+
*/
|
|
24
|
+
readonly channelId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the message is a partial message (meaning it does not have all the data).
|
|
27
|
+
* If this is true, you should use {@link Message.fetch} to get the full data of the message.
|
|
28
|
+
*/
|
|
29
|
+
get partial(): IsPartial;
|
|
30
|
+
/**
|
|
31
|
+
* If this message is a response to an interaction, this is the ID of the interaction's application
|
|
32
|
+
*/
|
|
33
|
+
get applicationId(): IfPartial<IsPartial, string | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The attachments of the message
|
|
36
|
+
*/
|
|
37
|
+
get attachments(): IfPartial<IsPartial, APIAttachment[]>;
|
|
38
|
+
/**
|
|
39
|
+
* The components of the message
|
|
40
|
+
*/
|
|
41
|
+
get components(): IfPartial<IsPartial, NonNullable<APIMessage["components"]>>;
|
|
42
|
+
/**
|
|
43
|
+
* The content of the message
|
|
44
|
+
*/
|
|
45
|
+
get content(): IfPartial<IsPartial, string>;
|
|
46
|
+
get embeds(): IfPartial<IsPartial, Embed[]>;
|
|
47
|
+
/**
|
|
48
|
+
* If this message was edited, this is the timestamp of the edit
|
|
49
|
+
*/
|
|
50
|
+
get editedTimestamp(): IfPartial<IsPartial, string | null>;
|
|
51
|
+
/**
|
|
52
|
+
* The flags of the message
|
|
53
|
+
*/
|
|
54
|
+
get flags(): IfPartial<IsPartial, MessageFlags>;
|
|
55
|
+
/**
|
|
56
|
+
* The interaction metadata of the message
|
|
57
|
+
*/
|
|
58
|
+
get interactionMetadata(): IfPartial<IsPartial, APIMessageInteractionMetadata | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* Whether the message mentions everyone
|
|
61
|
+
*/
|
|
62
|
+
get mentionedEveryone(): IfPartial<IsPartial, boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* The users mentioned in the message
|
|
65
|
+
*/
|
|
66
|
+
get mentionedUsers(): IfPartial<IsPartial, User[]>;
|
|
67
|
+
/**
|
|
68
|
+
* The roles mentioned in the message
|
|
69
|
+
*/
|
|
70
|
+
get mentionedRoles(): IfPartial<IsPartial, Role<true>[]>;
|
|
71
|
+
/**
|
|
72
|
+
* The data about the referenced message. You can use {@link Message.referencedMessage} to get the referenced message itself.
|
|
73
|
+
*/
|
|
74
|
+
get messageReference(): IfPartial<IsPartial, APIMessageReference | undefined>;
|
|
75
|
+
/**
|
|
76
|
+
* The referenced message itself
|
|
77
|
+
*/
|
|
78
|
+
get referencedMessage(): IfPartial<IsPartial, Message | null>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the message is pinned
|
|
81
|
+
*/
|
|
82
|
+
get pinned(): IfPartial<IsPartial, boolean>;
|
|
83
|
+
/**
|
|
84
|
+
* The poll contained in the message
|
|
85
|
+
*/
|
|
86
|
+
get poll(): IfPartial<IsPartial, APIPoll | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* The approximate position of the message in the channel
|
|
89
|
+
*/
|
|
90
|
+
get position(): IfPartial<IsPartial, number | undefined>;
|
|
91
|
+
/**
|
|
92
|
+
* The reactions on the message
|
|
93
|
+
*/
|
|
94
|
+
get reactions(): IfPartial<IsPartial, APIReaction[]>;
|
|
95
|
+
/**
|
|
96
|
+
* The stickers in the message
|
|
97
|
+
*/
|
|
98
|
+
get stickers(): IfPartial<IsPartial, APIStickerItem[]>;
|
|
99
|
+
/**
|
|
100
|
+
* The timestamp of the original message
|
|
101
|
+
*/
|
|
102
|
+
get timestamp(): IfPartial<IsPartial, string>;
|
|
103
|
+
/**
|
|
104
|
+
* Whether the message is a TTS message
|
|
105
|
+
*/
|
|
106
|
+
get tts(): IfPartial<IsPartial, boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* The type of the message
|
|
109
|
+
*/
|
|
110
|
+
get type(): IfPartial<IsPartial, MessageType>;
|
|
111
|
+
/**
|
|
112
|
+
* Get the author of the message
|
|
113
|
+
*/
|
|
114
|
+
get author(): IfPartial<IsPartial, User | null>;
|
|
115
|
+
/**
|
|
116
|
+
* Get the thread associated with this message, if there is one
|
|
117
|
+
*/
|
|
118
|
+
get thread(): IfPartial<IsPartial, GuildThreadChannel<ChannelType.PublicThread | ChannelType.AnnouncementThread> | null>;
|
|
119
|
+
/**
|
|
120
|
+
* Fetch updated data for this message.
|
|
121
|
+
* If the message is partial, this will fetch all the data for the message and populate the fields.
|
|
122
|
+
* If the message is not partial, all fields will be updated with new values from Discord.
|
|
123
|
+
*/
|
|
124
|
+
fetch(): Promise<void>;
|
|
125
|
+
/**
|
|
126
|
+
* Delete this message from Discord
|
|
127
|
+
*/
|
|
128
|
+
delete(): Promise<unknown>;
|
|
129
|
+
/**
|
|
130
|
+
* Get the channel the message was sent in
|
|
131
|
+
*/
|
|
132
|
+
fetchChannel(): Promise<import("./DmChannel.js").DmChannel<false> | import("./GroupDmChannel.js").GroupDmChannel<false> | import("./GuildTextChannel.js").GuildTextChannel<false> | import("./GuildStageOrVoiceChannel.js").GuildVoiceChannel<false> | import("./GuildCategoryChannel.js").GuildCategoryChannel<false> | import("./GuildAnnouncementChannel.js").GuildAnnouncementChannel<false> | GuildThreadChannel<import("discord-api-types/v10").ThreadChannelType, false> | import("./GuildStageOrVoiceChannel.js").GuildStageChannel<false> | import("./GuildForumChannel.js").GuildForumChannel<false> | import("./GuildMediaChannel.js").GuildMediaChannel | null>;
|
|
133
|
+
/**
|
|
134
|
+
* Pin this message
|
|
135
|
+
*/
|
|
136
|
+
pin(): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Unpin this message
|
|
139
|
+
*/
|
|
140
|
+
unpin(): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Start a thread with this message as the associated start message.
|
|
143
|
+
* If you want to start a thread without a start message, use {@link BaseGuildTextChannel.startThread}
|
|
144
|
+
*/
|
|
145
|
+
startThread(data: RESTPostAPIChannelThreadsJSONBody): Promise<GuildThreadChannel<import("discord-api-types/v10").ThreadChannelType, false>>;
|
|
146
|
+
edit(data: {
|
|
147
|
+
content?: string;
|
|
148
|
+
embeds?: Embed[];
|
|
149
|
+
allowedMentions?: APIAllowedMentions;
|
|
150
|
+
components?: Row[];
|
|
151
|
+
}): Promise<void>;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=Message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["../../../src/structures/Message.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAElB,KAAK,UAAU,EACf,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EAEnB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,iCAAiC,EAEtC,MAAM,uBAAuB,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