Added static command field to disable a command in DMs

This commit is contained in:
Essem 2022-06-28 16:15:31 -05:00
parent c01ac7d32f
commit 02a6e256b5
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
12 changed files with 20 additions and 3 deletions

View file

@ -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 = {