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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue