aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushMessageManager.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/extensions/discord.js/BushMessageManager.d.ts')
-rw-r--r--src/lib/extensions/discord.js/BushMessageManager.d.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib/extensions/discord.js/BushMessageManager.d.ts b/src/lib/extensions/discord.js/BushMessageManager.d.ts
new file mode 100644
index 0000000..bf795ad
--- /dev/null
+++ b/src/lib/extensions/discord.js/BushMessageManager.d.ts
@@ -0,0 +1,33 @@
+/* eslint-disable @typescript-eslint/no-explicit-any */
+import {
+ BaseFetchOptions,
+ CachedManager,
+ ChannelLogsQueryOptions,
+ Collection,
+ EmojiIdentifierResolvable,
+ MessageEditOptions,
+ MessagePayload,
+ Snowflake,
+ TextBasedChannelFields
+} from 'discord.js';
+import { BushClient, BushMessageResolvable } from '../discord-akairo/BushClient';
+import { BushDMChannel } from './BushDMChannel';
+import { BushMessage } from './BushMessage';
+import { BushTextChannel } from './BushTextChannel';
+import { BushThreadChannel } from './BushThreadChannel';
+
+export class BushMessageManager extends CachedManager<Snowflake, BushMessage, BushMessageResolvable> {
+ public constructor(channel: BushTextChannel | BushDMChannel | BushThreadChannel, iterable?: Iterable<unknown>);
+ public declare readonly client: BushClient;
+ public channel: TextBasedChannelFields;
+ public cache: Collection<Snowflake, BushMessage>;
+ public crosspost(message: BushMessageResolvable): Promise<BushMessage>;
+ public delete(message: BushMessageResolvable): Promise<void>;
+ public edit(message: BushMessageResolvable, options: MessagePayload | MessageEditOptions): Promise<BushMessage>;
+ public fetch(message: Snowflake, options?: BaseFetchOptions): Promise<BushMessage>;
+ public fetch(options?: ChannelLogsQueryOptions, cacheOptions?: BaseFetchOptions): Promise<Collection<Snowflake, BushMessage>>;
+ public fetchPinned(cache?: boolean): Promise<Collection<Snowflake, BushMessage>>;
+ public react(message: BushMessageResolvable, emoji: EmojiIdentifierResolvable): Promise<void>;
+ public pin(message: BushMessageResolvable): Promise<void>;
+ public unpin(message: BushMessageResolvable): Promise<void>;
+}