Urban is (apparently) nsfw

This commit is contained in:
Dragon Fire
2020-04-21 09:52:47 -04:00
parent 694dd85190
commit 2b03a8cdd0
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -12,6 +12,7 @@ module.exports = class UrbanCommand extends Command {
memberName: 'urban',
description: 'Defines a word, but with Urban Dictionary.',
clientPermissions: ['EMBED_LINKS'],
nsfw: true,
credit: [
{
name: 'Urban Dictionary',
@@ -31,9 +32,6 @@ module.exports = class UrbanCommand extends Command {
}
async run(msg, { word }) {
if (msg.guild && this.client.botListGuilds.includes(msg.guild.id) && !msg.channel.nsfw) {
return msg.reply(`The \`${this.name}\` command can only be used in NSFW channels.`);
}
try {
const { body } = await request
.get('http://api.urbandictionary.com/v0/define')