This commit is contained in:
Daniel Odendahl Jr
2018-04-22 02:55:50 +00:00
parent fee3f330f3
commit 11ca793181
6 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -332,7 +332,7 @@ served over 10,000 servers with a uniquely devoted fanbase.
* **tag-add**: Adds a tag for this server.
* **tag-edit**: Edits a tag in this server.
* **tag-info**: Responds with detailed information on a tag in this server.
* **tag-remove**: Removes a tag for this server.
* **tag-remove**: Removes a tag from this server.
* **tag-source**: Responds with the base markdown of a tag in this server.
### Role Management:
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class TagEditCommand extends Command {
async run(msg, { id, text }) {
const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } });
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`);
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`);
if (!msg.channel.permissionsFor(msg.author).has('MANAGE_MESSAGES') && tag.userID !== msg.author.id) {
return msg.reply('You can only edit your own tags.');
}
+1 -1
View File
@@ -25,7 +25,7 @@ module.exports = class TagInfoCommand extends Command {
async run(msg, { id }) {
const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } });
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`);
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`);
let author;
try {
const authorUser = await this.client.users.fetch(tag.userID);
+2 -2
View File
@@ -8,7 +8,7 @@ module.exports = class TagRemoveCommand extends Command {
aliases: ['tag-delete', 'remove-tag', 'delete-tag'],
group: 'tags',
memberName: 'remove',
description: 'Removes a tag for this server.',
description: 'Removes a tag from this server.',
guildOnly: true,
args: [
{
@@ -24,7 +24,7 @@ module.exports = class TagRemoveCommand extends Command {
async run(msg, { id }) {
const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } });
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`);
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`);
if (!msg.channel.permissionsFor(msg.author).has('MANAGE_MESSAGES') && tag.userID !== msg.author.id) {
return msg.reply('You can only delete your own tags.');
}
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class TagSourceCommand extends Command {
async run(msg, { id }) {
const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } });
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`);
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`);
return msg.code('md', tag.text);
}
};
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class TagCommand extends Command {
async run(msg, { id }) {
const tag = await Tag.findOne({ where: { id, guildID: msg.guild.id } });
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn\'t exist.`);
if (!tag) return msg.reply(`A tag with the ID **${id}** doesn't exist.`);
return msg.say(tag.text);
}
};