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.');