aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/other.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/discord.js/other.ts')
-rw-r--r--src/lib/extensions/discord.js/other.ts17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/lib/extensions/discord.js/other.ts b/src/lib/extensions/discord.js/other.ts
index 086ace0..aeba01c 100644
--- a/src/lib/extensions/discord.js/other.ts
+++ b/src/lib/extensions/discord.js/other.ts
@@ -27,10 +27,12 @@ import type {
Collection,
EmojiIdentifierResolvable,
EmojiResolvable,
+ FetchedThreads,
GuildChannelResolvable,
GuildMemberResolvable,
GuildTextChannelResolvable,
MessageResolvable,
+ PartialGroupDMChannel,
RoleResolvable,
Snowflake,
ThreadChannelResolvable,
@@ -105,6 +107,7 @@ export type BushAnyChannel =
| BushCategoryChannel
| BushDMChannel
| PartialBushDMChannel
+ | PartialGroupDMChannel
| BushNewsChannel
| BushStageChannel
| BushTextChannel
@@ -114,7 +117,13 @@ export type BushAnyChannel =
/**
* The channels that are text-based.
*/
-export type BushTextBasedChannel = PartialBushDMChannel | BushThreadChannel | BushDMChannel | BushNewsChannel | BushTextChannel;
+export type BushTextBasedChannel =
+ | BushDMChannel
+ | PartialBushDMChannel
+ | BushNewsChannel
+ | BushTextChannel
+ | BushThreadChannel
+ | BushVoiceChannel;
/**
* The types of channels that are text-based.
@@ -125,6 +134,8 @@ export type BushVoiceBasedChannel = Extract<BushAnyChannel, { bitrate: number }>
export type BushGuildBasedChannel = Extract<BushAnyChannel, { guild: BushGuild }>;
+export type BushNonCategoryGuildBasedChannel = Exclude<BushGuildBasedChannel, BushCategoryChannel>;
+
export type BushNonThreadGuildBasedChannel = Exclude<BushGuildBasedChannel, BushThreadChannel>;
export type BushGuildTextBasedChannel = Extract<BushGuildBasedChannel, BushTextBasedChannel>;
@@ -154,7 +165,7 @@ export type BushMappedGuildChannelTypes = {
/**
* The data returned from a thread fetch that returns multiple threads.
*/
-export interface BushFetchedThreads {
+export interface BushFetchedThreads extends FetchedThreads {
/**
* The threads that were fetched, with any members returned
*/
@@ -166,8 +177,6 @@ export interface BushFetchedThreads {
hasMore?: boolean;
}
-export type BushNonCategoryGuildBasedChannel = Exclude<BushGuildBasedChannel, BushCategoryChannel>;
-
export type BushGuildCacheMessage<Cached extends CacheType> = CacheTypeReducer<
Cached,
BushMessage<true>,