Skip to content

Commit

Permalink
fix: don't call command if it's the wrong guild
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Jun 22, 2018
1 parent 98cdba0 commit 0092902
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/CustomCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class CustomCommand extends Command {
* @param {Object} ctx command context
*/
async run(message, ctx) {
if (!message.guild || message.guild.id !== this.guildId) return;
let format;
if (ctx['settings.cc.ping']) {
const mention = message.mentions.members.size > 0 ?
Expand Down

0 comments on commit 0092902

Please sign in to comment.