Temporary mute command doesn't mute and throws deprecation warning
I'm trying to create a temporary mute command for my Discord bot. It creates the role muted, but the user can still write messages even though I've changed the perms. On top of that, I'm getting the following deprecation warning: (node:15956) DeprecationWarning: Collection#find: pass a function instead const Discord = require("discord.js"); const ms = require("ms"); module.exports.run = async (bot, message, args) => { //!tempmute @user 1s/m/h/d let tomute = message.guild.member(message.mentions.users.first() || message.guild.members.get(args[0])); if(!tomute) return message.reply("Couldn't fin
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.