handler bug fix
This commit is contained in:
parent
90a5d7e3f5
commit
a6b2526db0
1 changed files with 1 additions and 1 deletions
2
util/dist/handler.js
vendored
2
util/dist/handler.js
vendored
|
@ -30,7 +30,7 @@ module.exports = async client => {
|
||||||
client.on("ready", async () => {
|
client.on("ready", async () => {
|
||||||
const gg = client.guilds.cache.get("840225563193114624");
|
const gg = client.guilds.cache.get("840225563193114624");
|
||||||
await gg.commands.set(ownercmds);
|
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 => {
|
client.guilds.cache.forEach(g => {
|
||||||
const getroles = name => {
|
const getroles = name => {
|
||||||
const perms = cmds.find(n => n.name == name).UserPerms;
|
const perms = cmds.find(n => n.name == name).UserPerms;
|
||||||
|
|
Loading…
Reference in a new issue