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

@ -28,7 +28,8 @@ export async function load(client, cluster, worker, ipc, command, soundStatus, s
aliases: props.aliases,
params: props.arguments,
flags: props.flags,
slashAllowed: props.slashAllowed
slashAllowed: props.slashAllowed,
directAllowed: props.directAllowed
});
const categoryCommands = categories.get(category);
@ -69,7 +70,8 @@ export async function update() {
aliases: cmd.aliases,
params: cmd.arguments,
flags: cmd.flags,
slashAllowed: cmd.slashAllowed
slashAllowed: cmd.slashAllowed,
directAllowed: cmd.directAllowed
};
info.set(name, cmdInfo);
}
@ -77,7 +79,8 @@ export async function update() {
name,
type: 1,
description: cmdInfo.description,
options: cmdInfo.flags
options: cmdInfo.flags,
dm_permission: cmdInfo.directAllowed
});
}
return commandArray;