fix(roles): delete don't return role anymore

This commit is contained in:
Marcos Susaña 2025-04-28 03:42:46 -04:00 committed by GitHub
parent a358bb0a04
commit 34ca3e293e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,7 +95,6 @@ export class RoleShorter extends BaseShorter {
async delete(guildId: string, roleId: string, reason?: string): Promise<GuildRoleStructure> { async delete(guildId: string, roleId: string, reason?: string): Promise<GuildRoleStructure> {
const res = await this.client.proxy.guilds(guildId).roles(roleId).delete({ reason }); const res = await this.client.proxy.guilds(guildId).roles(roleId).delete({ reason });
this.client.cache.roles?.removeIfNI('Guilds', roleId, guildId); this.client.cache.roles?.removeIfNI('Guilds', roleId, guildId);
return Transformers.GuildRole(this.client, res, guildId);
} }
/** /**