feat: Role.delete()

This commit is contained in:
Yuzu 2022-06-24 21:35:27 -05:00
parent 9e0d157003
commit a0775f0b31

View File

@ -42,14 +42,9 @@ export class Role implements Model {
return `#${this.color.toString(16).padStart(6, '0')}`;
}
/*
* delete() {
* return.this.guild.deleteRole(this.id);
* }
* edit() {
* return this.guild.editRole(this.id);
* }
* */
async delete() {
await this.guild.deleteRole(this.id);
}
toString() {
switch (this.id) {