mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-21 16:55:03 +00:00
Type fixes for djs
This commit is contained in:
parent
a99dddef7a
commit
2977363dc0
130 changed files with 8877 additions and 411 deletions
|
@ -1,3 +1,4 @@
|
|||
import { Snowflake } from "discord.js";
|
||||
import { sendSuccessMessage } from "../../../pluginUtils";
|
||||
import { resolveMember } from "../../../utils";
|
||||
import { mutesCmd } from "../types";
|
||||
|
@ -19,7 +20,7 @@ export const ClearMutesWithoutRoleCmd = mutesCmd({
|
|||
const member = await resolveMember(pluginData.client, pluginData.guild, mute.user_id);
|
||||
if (!member) continue;
|
||||
|
||||
if (!member.roles.cache.has(muteRole)) {
|
||||
if (!member.roles.cache.has(muteRole as Snowflake)) {
|
||||
await pluginData.state.mutes.clear(mute.user_id);
|
||||
cleared++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue