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

View File

@ -92,8 +92,8 @@ export class RoleShorter extends BaseShorter {
* @param reason The reason for deleting the role. * @param reason The reason for deleting the role.
* @returns A Promise that resolves when the role is deleted. * @returns A Promise that resolves when the role is deleted.
*/ */
async delete(guildId: string, roleId: string, reason?: string): Promise<GuildRoleStructure> { async delete(guildId: string, roleId: string, reason?: string) {
const res = await this.client.proxy.guilds(guildId).roles(roleId).delete({ reason }); 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);
} }