nyx

The first CODM discrod bot -- cath.exe Template
git clone https://codeberg.org/night0721/nyx
Log | Files | Refs | LICENSE

commit 6e8fbe15e76fb7193314e124c400144303122e57
parent a6b2526db070da2cbc0a9cc3c4c71499e50540b4
Author: night0721 <[email protected]>
Date:   Sun, 23 Jan 2022 06:40:29 +0800

set cmds

Diffstat:
Mutil/dist/handler.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/dist/handler.js b/util/dist/handler.js @@ -30,7 +30,7 @@ module.exports = async client => { client.on("ready", async () => { const gg = client.guilds.cache.get("840225563193114624"); await gg.commands.set(ownercmds); - await client.application.commands.then(async cmd => { + await client.application.commands.set(cmds).then(async cmd => { client.guilds.cache.forEach(g => { const getroles = name => { const perms = cmds.find(n => n.name == name).UserPerms;