From f01be2e3ce820e5737416180efa3e5852ece72c4 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 20 Apr 2022 18:37:22 -0400 Subject: fix invite link, remove store channel, update to use builder methods, fix breaking changes --- src/lib/extensions/discord.js/BushMessageManager.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/lib/extensions/discord.js/BushMessageManager.ts') diff --git a/src/lib/extensions/discord.js/BushMessageManager.ts b/src/lib/extensions/discord.js/BushMessageManager.ts index 80b7a21..edb7982 100644 --- a/src/lib/extensions/discord.js/BushMessageManager.ts +++ b/src/lib/extensions/discord.js/BushMessageManager.ts @@ -1,9 +1,9 @@ import { BushMessageResolvable, BushTextBasedChannel, type BushMessage } from '#lib'; import { CachedManager, + FetchMessageOptions, + FetchMessagesOptions, MessageManager, - type BaseFetchOptions, - type ChannelLogsQueryOptions, type Collection, type EmojiIdentifierResolvable, type MessageEditOptions, @@ -72,8 +72,8 @@ export declare class BushMessageManager * .then(messages => console.log(`${messages.filter(m => m.author.id === '84484653687267328').size} messages`)) * .catch(console.error); */ - public fetch(message: Snowflake, options?: BaseFetchOptions): Promise; - public fetch(options?: ChannelLogsQueryOptions, cacheOptions?: BaseFetchOptions): Promise>; + public fetch(options: BushMessageResolvable | FetchMessageOptions): Promise; + public fetch(options?: FetchMessagesOptions): Promise>; /** * Fetches the pinned messages of this channel and returns a collection of them. @@ -107,3 +107,7 @@ export declare class BushMessageManager */ public unpin(message: BushMessageResolvable): Promise; } + +export interface BushFetchMessageOptions extends FetchMessageOptions { + message: BushMessageResolvable; +} -- cgit