3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00
This commit is contained in:
almeidx 2021-07-29 00:03:25 +01:00
parent 9ddfc48bb2
commit 3d29963b87
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664
2 changed files with 2 additions and 5 deletions

View file

@ -90,7 +90,7 @@ export async function muteUser(
try {
await member.roles.add(muteRole as Snowflake);
} catch (e) {
const actualMuteRole = pluginData.guild.roles.cache.find(x => x.id === muteRole);
const actualMuteRole = pluginData.guild.roles.cache.get(muteRole as Snowflake);
if (!actualMuteRole) {
lock.unlock();
logs.log(LogType.BOT_ALERT, {