aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushUserManager.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/BushUserManager.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/BushUserManager.ts')
-rw-r--r--src/lib/extensions/discord.js/BushUserManager.ts60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/lib/extensions/discord.js/BushUserManager.ts b/src/lib/extensions/discord.js/BushUserManager.ts
deleted file mode 100644
index c26dbde..0000000
--- a/src/lib/extensions/discord.js/BushUserManager.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-import type { BushClient, BushDMChannel, BushUser, BushUserResolvable } from '#lib';
-import {
- CachedManager,
- Message,
- MessageOptions,
- MessagePayload,
- UserFlagsBitField,
- UserManager,
- type BaseFetchOptions,
- type Snowflake
-} from 'discord.js';
-import type { RawUserData } from 'discord.js/typings/rawDataTypes';
-
-/**
- * Manages API methods for users and stores their cache.
- */
-export declare class BushUserManager extends CachedManager<Snowflake, BushUser, BushUserResolvable> implements UserManager {
- private constructor(client: BushClient, iterable?: Iterable<RawUserData>);
-
- /**
- * The DM between the client's user and a user
- * @param userId The user id
- * @private
- */
- public dmChannel(userId: Snowflake): BushDMChannel | null;
-
- /**
- * Creates a {@link BushDMChannel} between the client and a user.
- * @param user The UserResolvable to identify
- * @param options Additional options for this fetch
- */
- public createDM(user: BushUserResolvable, options?: BaseFetchOptions): Promise<BushDMChannel>;
-
- /**
- * Deletes a {@link BushDMChannel} (if one exists) between the client and a user. Resolves with the channel if successful.
- * @param user The UserResolvable to identify
- */
- public deleteDM(user: BushUserResolvable): Promise<BushDMChannel>;
-
- /**
- * Obtains a user from Discord, or the user cache if it's already available.
- * @param user The user to fetch
- * @param options Additional options for this fetch
- */
- public fetch(user: BushUserResolvable, options?: BaseFetchOptions): Promise<BushUser>;
-
- /**
- * Fetches a user's flags.
- * @param user The UserResolvable to identify
- * @param options Additional options for this fetch
- */
- public fetchFlags(user: BushUserResolvable, options?: BaseFetchOptions): Promise<UserFlagsBitField>;
-
- /**
- * Sends a message to a user.
- * @param user The UserResolvable to identify
- * @param options The options to provide
- */
- public send(user: BushUserResolvable, options: string | MessagePayload | MessageOptions): Promise<Message>;
-}