blob: a9575bdd6cd349661ed525eb4ee5c99ab384fb19 (
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 extends Role {
get members(): Collection<Snowflake, BushGuildMember>;
}
|