1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
import {
BaseFetchOptions,
CachedManager,
ChannelLogsQueryOptions,
Collection,
EmojiIdentifierResolvable,
MessageEditOptions,
MessagePayload,
MessageResolvable,
Snowflake
} from 'discord.js';
import { RawMessageData } from 'discord.js/typings/rawDataTypes';
import { BushMessageResolvable, BushTextBasedChannels } from '../..';
import { BushMessage } from './BushMessage';
export class BushMessageManager extends CachedManager<Snowflake, BushMessage, BushMessageResolvable> {
public constructor(channel: BushTextBasedChannels, iterable?: Iterable<RawMessageData>);
public channel: BushTextBasedChannels;
public cache: Collection<Snowflake, BushMessage>;
public crosspost(message: BushMessageResolvable): Promise<BushMessage>;
public delete(message: BushMessageResolvable): Promise<void>;
public edit(message: MessageResolvable, 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>;
}
|