Added static command field to disable a command in DMs
This commit is contained in:
parent
c01ac7d32f
commit
02a6e256b5
12 changed files with 20 additions and 3 deletions
|
|
@ -84,6 +84,9 @@ export default async (client, cluster, worker, ipc, message) => {
|
|||
const cmd = commands.get(aliased ?? command);
|
||||
if (!cmd) return;
|
||||
|
||||
// block certain commands from running in DMs
|
||||
if (!cmd.directAllowed && !message.channel.guild) return;
|
||||
|
||||
// actually run the command
|
||||
log("log", `${message.author.username} (${message.author.id}) ran classic command ${command}`);
|
||||
const reference = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue