aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/Fun/story.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/commands/Fun/story.js b/commands/Fun/story.js
index 4f421c5..8835248 100644
--- a/commands/Fun/story.js
+++ b/commands/Fun/story.js
@@ -12,12 +12,13 @@ exports.run = async (bot, msg) => {
`Story 2 ${selectedUser1.username} jumps into the window then ${selectedUser2.username} saves ${selectedUser1.username} and ${selectedUser3.username} claps.`,
];
const storySelected = [Math.floor(Math.random() * stories.length)];
- const embed = new Discord.RichEmbed()
+ const { RichEmbed } = require('discord.js');
+ const embed = new RichEmbed()
.setColor(0x00ae86)
.setTitle('Pokebot Storytime')
.setDescription(stories[storySelected])
.setFooter('PokeBot Beta');
- msg.channel.send(embed);
+ msg.channel.send({ embed });
});
};