Merge branch 'yuzudev:main' into main

This commit is contained in:
Marcos Susaña 2022-06-25 16:29:40 -04:00 committed by GitHub
commit e188c4e3ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 8 deletions

9
mod.ts
View File

@ -1,3 +1,12 @@
export * from "./session/mod.ts"; export * from "./session/mod.ts";
export * from "./util/mod.ts"; export * from "./util/mod.ts";
export * from "./vendor/external.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";

View File

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