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

/**
 * Holds methods to resolve GuildEmojis and stores their cache.
 */
export class BushBaseGuildEmojiManager extends CachedManager<Snowflake, BushGuildEmoji, BushEmojiResolvable> {
	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;
}