aboutsummaryrefslogtreecommitdiff
path: root/commands/Moderation/setSuggestions.js
blob: 258f202c14679cd3ef693428bfd519d570780653 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/** **************************************
 *
 *   Set Suggestions: Plugin for PokeBot that performs moderation actions.
 *   Copyright (C) 2018 TheEdge, jtsshieh, Alee
 *
 *   Licensed under the Open Software License version 3.0
 *
 * *************************************/

exports.run = (bot, msg, args) => {
  bot.plugins.settings.setStr('suggestions', args[0], msg.guild.id);
  msg.reply(`Alright, I have set the suggestions channel to ${args[0]}`);
};

exports.checkPermission = (bot, member) => {
  if (!member.hasPermission('MANAGE_MESSAGES')) {
    return 'You don\'t have permission to manage messages.';
  }
  return true;
};


exports.conf = {
  aliases: [],
  guildOnly: true
};

exports.help = {
  name: 'setSuggestions',
  description: 'Set\'s the Suggestions Channel.',
  usage: '<channelID>'
};