mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-16 18:56:00 +00:00
Chore 3.7.2
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
const ms = require("ms");
|
||||
|
||||
module.exports = {
|
||||
name: "message",
|
||||
async execute(client, msg, Discord) {
|
||||
@ -35,7 +37,7 @@ function getCommand(client, args, msg, Discord) {
|
||||
(cmd) => cmd.alias && cmd.alias.includes(commandName)
|
||||
);
|
||||
if (!command) return;
|
||||
if (command.onlyDev && msg.author.id !== client.config.devId) return;
|
||||
if (command.onlyDev && msg.author.id !== client.config.devId) return msg.channel.send(client.messages.onlyDev);
|
||||
if (client.config.devMode && msg.member.id !== client.config.devId && msg.guild.id !== "718081535240306738")
|
||||
return msg.channel.send(client.messages.devMode);
|
||||
client.funcs.exe(msg, args, client, Discord, command);
|
||||
|
Reference in New Issue
Block a user