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.
|
* @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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user