From 16f7d93ee633ff1318d283dc9980806e00e9049b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 8 May 2024 00:47:45 -0400 Subject: [PATCH] Fix --- commands/search/wikipedia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 3743248a..1108209e 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -47,7 +47,7 @@ module.exports = class WikipediaCommand extends Command { let thumbnail = data.thumbnail ? data.thumbnail.source : null; if (!msg.channel.nsfw && thumbnail) { const img = await request.get(data.thumbnail.source); - const nsfw = this.client.tensorflow.isImageNSFW(img.body); + const nsfw = await this.client.tensorflow.isImageNSFW(img.body); if (nsfw) thumbnail = null; } const embed = new EmbedBuilder()