aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord.js/BushRole.ts
blob: c0b9ae5533942339cc8ad2bada85239b30b6986f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import type { BushClient, BushGuild, BushGuildMember } from '#lib';
import { Role, type Collection, type Snowflake } from 'discord.js';
import type { RawRoleData } from 'discord.js/typings/rawDataTypes';

/**
 * Represents a role on Discord.
 */
export class BushRole extends Role {
	public declare guild: BushGuild;

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

export interface BushRole {
	get members(): Collection<Snowflake, BushGuildMember>;
}