aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushGuildEmoji.ts
blob: 9b931bbbac9a19e6b68a46d722eb337ff9b883f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import type { BushClient, BushGuild, BushGuildEmojiRoleManager, BushUser } from '#lib';
import { GuildEmoji } from 'discord.js';
import type { RawGuildEmojiData } from 'discord.js/typings/rawDataTypes';

/**
 * Represents a custom emoji.
 */
export class BushGuildEmoji extends GuildEmoji {
	public declare readonly client: BushClient;
	public declare guild: BushGuild;
	public declare author: BushUser | null;

	public constructor(client: BushClient, data: RawGuildEmojiData, guild: BushGuild) {
		super(client, data, guild);
	}
}

export interface BushGuildEmoji extends GuildEmoji {
	get roles(): BushGuildEmojiRoleManager;
}