Skip to content

Commit

Permalink
fix: don't show command ids from other guilds
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Jun 22, 2018
1 parent 0092902 commit 9dc4602
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/Utilities/GetCommandIds.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class GetCommandIds extends Command {
const fileContents = [];
const commands = this.bot.commandHandler.commands
.concat(this.bot.commandHandler.inlineCommands || [])
.concat(this.bot.commandHandler.customCommands || []);
.concat((this.bot.commandHandler.customCommands || [])
.filter(cc => message.guild && cc.guildId === message.guild.id));
commands
.filter(command =>
!command.ownerOnly || (message.author.id === this.bot.owner && command.ownerOnly))
Expand Down

0 comments on commit 9dc4602

Please sign in to comment.