aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushChannelManager.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-14 12:47:57 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-06-14 12:47:57 -0400
commit661e4c9935aeb8760dafc7ced4bbec6cc356a033 (patch)
treebb4c12bdef067d203f100e13e05ccb705b299834 /src/lib/extensions/discord.js/BushChannelManager.ts
parenteaf592b72eb5b1d66aa2bde5151a8947570a506c (diff)
downloadtanzanite-661e4c9935aeb8760dafc7ced4bbec6cc356a033.tar.gz
tanzanite-661e4c9935aeb8760dafc7ced4bbec6cc356a033.tar.bz2
tanzanite-661e4c9935aeb8760dafc7ced4bbec6cc356a033.zip
remove the war crimes that I previously committed
- Remove custom typings and replace with declaration merging - Fix the typings for args - Replace all discord-api-types imports with discord.js imports - Fix discord.js breaking changes
Diffstat (limited to 'src/lib/extensions/discord.js/BushChannelManager.ts')
-rw-r--r--src/lib/extensions/discord.js/BushChannelManager.ts25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/extensions/discord.js/BushChannelManager.ts b/src/lib/extensions/discord.js/BushChannelManager.ts
deleted file mode 100644
index ff93209..0000000
--- a/src/lib/extensions/discord.js/BushChannelManager.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import type { BushAnyChannel, BushChannelResolvable } from '#lib';
-import { CachedManager, ChannelManager, type Client, type FetchChannelOptions, type Snowflake } from 'discord.js';
-import type { RawChannelData } from 'discord.js/typings/rawDataTypes';
-
-/**
- * A manager of channels belonging to a client
- */
-export declare class BushChannelManager
- extends CachedManager<Snowflake, BushAnyChannel, BushChannelResolvable>
- implements ChannelManager
-{
- public constructor(client: Client, iterable: Iterable<RawChannelData>);
-
- /**
- * Obtains a channel from Discord, or the channel cache if it's already available.
- * @param id The channel's id
- * @param options Additional options for this fetch
- * @example
- * // Fetch a channel by its id
- * client.channels.fetch('222109930545610754')
- * .then(channel => console.log(channel.name))
- * .catch(console.error);
- */
- public fetch(id: Snowflake, options?: FetchChannelOptions): Promise<BushAnyChannel | null>;
-}