aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushChannel.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/discord.js/BushChannel.d.ts')
-rw-r--r--src/lib/extensions/discord.js/BushChannel.d.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lib/extensions/discord.js/BushChannel.d.ts b/src/lib/extensions/discord.js/BushChannel.d.ts
new file mode 100644
index 0000000..482dd9b
--- /dev/null
+++ b/src/lib/extensions/discord.js/BushChannel.d.ts
@@ -0,0 +1,23 @@
+import { Snowflake } from 'discord-api-types';
+import { Channel, ChannelMention } from 'discord.js';
+import { ChannelTypes } from 'discord.js/typings/enums';
+import { BushClient } from '../discord-akairo/BushClient';
+import { BushDMChannel } from './BushDMChannel';
+import { BushNewsChannel } from './BushNewsChannel';
+import { BushTextChannel } from './BushTextChannel';
+import { BushThreadChannel } from './BushThreadChannel';
+
+export class BushChannel extends Channel {
+ public constructor(client: BushClient, data?: unknown, immediatePatch?: boolean);
+ public readonly createdAt: Date;
+ public readonly createdTimestamp: number;
+ public deleted: boolean;
+ public id: Snowflake;
+ public readonly partial: false;
+ public type: keyof typeof ChannelTypes;
+ public delete(): Promise<BushChannel>;
+ public fetch(force?: boolean): Promise<BushChannel>;
+ public isText(): this is BushTextChannel | BushDMChannel | BushNewsChannel | BushThreadChannel;
+ public isThread(): this is BushThreadChannel;
+ public toString(): ChannelMention;
+}