aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushBaseGuildEmojiManager.ts
blob: 66abbc27d495dec4f317121eb7bfcf133171a2de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import type { BushClient, BushEmojiIdentifierResolvable, BushEmojiResolvable, BushGuildEmoji } from '#lib';
import { BaseGuildEmojiManager, CachedManager, type Snowflake } from 'discord.js';
import { type RawGuildEmojiData } from 'discord.js/typings/rawDataTypes';

/**
 * Holds methods to resolve GuildEmojis and stores their cache.
 */
export declare class BushBaseGuildEmojiManager
	extends CachedManager<Snowflake, BushGuildEmoji, BushEmojiResolvable>
	implements BaseGuildEmojiManager
{
	public constructor(client: BushClient, iterable?: Iterable<RawGuildEmojiData>);

	/**
	 * Resolves an EmojiResolvable to an emoji identifier.
	 * @param emoji The emoji resolvable to resolve
	 */
	public resolveIdentifier(emoji: BushEmojiIdentifierResolvable): string | null;
}