From 66b5ca34a93b51032914133e2745b794d7d07f8b Mon Sep 17 00:00:00 2001 From: Socram03 Date: Mon, 28 Apr 2025 04:04:35 -0400 Subject: [PATCH] fix: dx --- src/structures/GuildRole.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/structures/GuildRole.ts b/src/structures/GuildRole.ts index 200674d..4d222c7 100644 --- a/src/structures/GuildRole.ts +++ b/src/structures/GuildRole.ts @@ -46,7 +46,7 @@ export class GuildRole extends DiscordBase { return this.client.roles.edit(this.guildId, this.id, body); } - delete(reason?: string): Promise { + delete(reason?: string) { return this.client.roles.delete(this.guildId, this.id, reason); } @@ -61,8 +61,7 @@ export class GuildRole extends DiscordBase { list: (force = false): Promise => ctx.client.roles.list(ctx.guildId, force), edit: (roleId: string, body: RESTPatchAPIGuildRoleJSONBody, reason?: string): Promise => ctx.client.roles.edit(ctx.guildId, roleId, body, reason), - delete: (roleId: string, reason?: string): Promise => - ctx.client.roles.delete(ctx.guildId, roleId, reason), + delete: (roleId: string, reason?: string) => ctx.client.roles.delete(ctx.guildId, roleId, reason), editPositions: (body: RESTPatchAPIGuildRolePositionsJSONBody): Promise => ctx.client.roles.editPositions(ctx.guildId, body), };