From 0ba5f71e06a8f97b38b3502e8ad0d393d8b0a9e8 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 2 Aug 2021 20:09:01 -0400 Subject: [PATCH] Fix --- framework/Extensions.js | 2 +- structures/commands/Subreddit.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Extensions.js b/framework/Extensions.js index 44649b61..90ea48c5 100644 --- a/framework/Extensions.js +++ b/framework/Extensions.js @@ -1,4 +1,4 @@ -const { Message, MessagePayload, APIMessage } = require('discord.js'); +const { Message } = require('discord.js'); Reflect.defineProperty(Message.prototype, 'say', { value: function (content, options) { if (typeof content === 'object') return this.channel.send(content); diff --git a/structures/commands/Subreddit.js b/structures/commands/Subreddit.js index d377d34b..bd47ae47 100644 --- a/structures/commands/Subreddit.js +++ b/structures/commands/Subreddit.js @@ -23,7 +23,7 @@ module.exports = class SubredditCommand extends Command { try { const post = await this.random(subreddit, msg.channel.nsfw); if (!post) return msg.reply('Could not find any results.'); - return msg.say(this.generateText(post.post, post.origin, post.icon)); + return msg.embed(this.generateText(post.post, post.origin, post.icon)); } catch (err) { if (err.status === 403) return msg.say('This subreddit is private.'); if (err.status === 404) return msg.say('Could not find any results.');