mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
fix(roles): delete don't return role anymore
This commit is contained in:
parent
a358bb0a04
commit
34ca3e293e
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user