commit a6b2526db070da2cbc0a9cc3c4c71499e50540b4
parent 90a5d7e3f5b39b9b37a7f3e169688490fc22e79f
Author: night0721 <[email protected]>
Date: Sun, 23 Jan 2022 06:35:05 +0800
handler bug fix
Diffstat:
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.catch(null).then(async cmd => {
+ await client.application.commands.then(async cmd => {
client.guilds.cache.forEach(g => {
const getroles = name => {
const perms = cmds.find(n => n.name == name).UserPerms;