From 1abf41170eefeb42ec4e446a0ffac2e5da4c5709 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Free=20=E5=85=AC=E5=9C=92?= <45021001+FreeAoi@users.noreply.github.com> Date: Wed, 20 Nov 2024 20:42:36 -0600 Subject: [PATCH] fix (#299) * fix * chore: apply formatting --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/structures/GuildRole.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/GuildRole.ts b/src/structures/GuildRole.ts index 923428e..ac1cbd1 100644 --- a/src/structures/GuildRole.ts +++ b/src/structures/GuildRole.ts @@ -31,8 +31,8 @@ export class GuildRole extends DiscordBase { return this.client.roles.fetch(this.guildId, this.id, force); } - edit(body: RESTPatchAPIGuildRoleJSONBody, reason?: string) { - return this.client.roles.create(this.guildId, body, reason); + edit(body: RESTPatchAPIGuildRoleJSONBody) { + return this.client.roles.edit(this.guildId, this.id, body); } delete(reason?: string) {