diff --git a/mod.ts b/mod.ts index f869556..9336da3 100644 --- a/mod.ts +++ b/mod.ts @@ -1,3 +1,12 @@ export * from "./session/mod.ts"; export * from "./util/mod.ts"; export * from "./vendor/external.ts"; +export * from "./structures/User.ts"; +export * from "./structures/Role.ts"; +export * from "./structures/Base.ts"; +export * from "./structures/Guild.ts"; +export * from "./structures/Member.ts"; +export * from "./structures/Message.ts"; +export * from "./structures/BaseGuild.ts"; +export * from "./structures/Attachment.ts"; +export * from "./structures/AnonymousGuild.ts"; diff --git a/structures/Role.ts b/structures/Role.ts index 7ebf3fc..2bb3cb1 100644 --- a/structures/Role.ts +++ b/structures/Role.ts @@ -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) {