// Get the mentioned member from the message
const member = message.mentions.members.first();
if (!member) return message.channel.send('You need to mention a member to mute.');
// Check if the member has the required permissions
if (member.permissions.has(PermissionsBitField.Flags.Administrator)) {
return message.channel.send('You cannot mute an administrator.');
}
// Get the mentioned member from the message
const member = message.mentions.members.first();
if (!member) return message.channel.send('You need to mention a member to mute.');
// Check if the member has the required permissions
if (member.permissions.has(PermissionsBitField.Flags.Administrator)) {
return message.channel.send('You cannot mute an administrator.');
}