diff --git a/commands/general/help.js b/commands/general/help.js index c5fb9cd..a2524cc 100644 --- a/commands/general/help.js +++ b/commands/general/help.js @@ -51,6 +51,8 @@ class HelpCommand extends Command { } return embed; } else { + if (this.message.channel.guild && !this.message.channel.permissionsOf(this.client.user.id).has("addReactions")) return "I don't have the `Add Reactions` permission!"; + if (this.message.channel.guild && !this.message.channel.permissionsOf(this.client.user.id).has("embedLinks")) return "I don't have the `Embed Links` permission!"; const pages = []; for (const category of Object.keys(help.categories)) { const splitPages = help.categories[category].map((item, index) => { diff --git a/commands/general/image.js b/commands/general/image.js index 91e0ef0..852c30c 100644 --- a/commands/general/image.js +++ b/commands/general/image.js @@ -11,7 +11,7 @@ class ImageSearchCommand extends Command { if (this.args.length === 0) return "You need to provide something to search for!"; await this.message.channel.sendTyping(); const embeds = []; - const images = await fetch(`${random(searx)}/search?format=json&safesearch=1&categories=images&q=!goi%20!bii%20!ddi%20${encodeURIComponent(this.args.join(" "))}`).then(res => res.json()); + const images = await fetch(`${random(searx)}/search?format=json&safesearch=2&categories=images&q=!goi%20!bii%20!ddi%20${encodeURIComponent(this.args.join(" "))}`).then(res => res.json()); if (images.results.length === 0) return "I couldn't find any results!"; for (const [i, value] of images.results.entries()) { embeds.push({