mirror of
https://github.com/JonnyBro/JaBa.git
synced 2025-02-01 07:04:11 +05:00
fix: doesnt commands registered, when client doesnt ready
This commit is contained in:
parent
cfee30528d
commit
024822d1f3
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ import differentCommands from "../utils/differentcommands.js";
|
|||
|
||||
export default async function registerCommands(props) {
|
||||
const globalCommands = props.commands.filter(cmd => !cmd.options?.devOnly);
|
||||
await registerGlobalCommands(props.client, globalCommands);
|
||||
props.client.once("ready", () => registerGlobalCommands(props.client, globalCommands));
|
||||
}
|
||||
|
||||
const registerGlobalCommands = async (client, commands) => {
|
||||
|
|
Loading…
Reference in a new issue