Compare commits
2 Commits
ad014ffc39
...
a39dfb7d6e
Author | SHA1 | Date | |
---|---|---|---|
a39dfb7d6e | |||
351dcee051 |
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -11,7 +11,7 @@
|
||||
"skipFiles": [
|
||||
"<node_internals>/**"
|
||||
],
|
||||
"program": "${workspaceFolder}\\main.js",
|
||||
"program": "${workspaceFolder}\\index.js",
|
||||
"envFile": "${workspaceFolder}\\secrets.env"
|
||||
}
|
||||
]
|
||||
|
@ -65,7 +65,7 @@ client.once("ready", async () => {
|
||||
let guild = client.guilds.resolve(config.guild);
|
||||
await guild.commands.set(commands);
|
||||
await guild.commands.permissions.set({
|
||||
fullPermissions: commands.filter(x=>x.permissions).map(local_command => {
|
||||
fullPermissions: commands.map(local_command => {
|
||||
let discord_command = guild.commands.cache.find(discord_command => local_command.name == discord_command.name);
|
||||
return {
|
||||
id: discord_command.id,
|
||||
|
Loading…
Reference in New Issue
Block a user