mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
fix: xd
This commit is contained in:
parent
34ca3e293e
commit
4574ca018f
@ -92,8 +92,8 @@ export class RoleShorter extends BaseShorter {
|
||||
* @param reason The reason for deleting the role.
|
||||
* @returns A Promise that resolves when the role is deleted.
|
||||
*/
|
||||
async delete(guildId: string, roleId: string, reason?: string): Promise<GuildRoleStructure> {
|
||||
const res = await this.client.proxy.guilds(guildId).roles(roleId).delete({ reason });
|
||||
async delete(guildId: string, roleId: string, reason?: string) {
|
||||
await this.client.proxy.guilds(guildId).roles(roleId).delete({ reason });
|
||||
this.client.cache.roles?.removeIfNI('Guilds', roleId, guildId);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user