Compare commits

..

No commits in common. "a39dfb7d6ecedd26821c5589577792cb36ac961c" and "ad014ffc397c25788660c3aa7fc8b56073f4f95f" have entirely different histories.

2 changed files with 2 additions and 2 deletions

2
.vscode/launch.json vendored
View File

@ -11,7 +11,7 @@
"skipFiles": [ "skipFiles": [
"<node_internals>/**" "<node_internals>/**"
], ],
"program": "${workspaceFolder}\\index.js", "program": "${workspaceFolder}\\main.js",
"envFile": "${workspaceFolder}\\secrets.env" "envFile": "${workspaceFolder}\\secrets.env"
} }
] ]

View File

@ -65,7 +65,7 @@ client.once("ready", async () => {
let guild = client.guilds.resolve(config.guild); let guild = client.guilds.resolve(config.guild);
await guild.commands.set(commands); await guild.commands.set(commands);
await guild.commands.permissions.set({ await guild.commands.permissions.set({
fullPermissions: commands.map(local_command => { fullPermissions: commands.filter(x=>x.permissions).map(local_command => {
let discord_command = guild.commands.cache.find(discord_command => local_command.name == discord_command.name); let discord_command = guild.commands.cache.find(discord_command => local_command.name == discord_command.name);
return { return {
id: discord_command.id, id: discord_command.id,