Skip to content

Commit

Permalink
Create Embeds.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DomathID authored Nov 6, 2020
1 parent 71d2727 commit 90e7efc
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions modules/Embeds.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const Discord = require("discord.js");
module.exports.Error = (message) => {
const cmdEmbed = new Discord.MessageEmbed()
.setColor("RED")
.setTitle("Uh Oh!")
.setDescription("**Looks like there was an error trying to do this oof**");

return message.author.send(cmdEmbed);
};
module.exports.nsfw = (message) => {
const cmdEmbed = new Discord.MessageEmbed()
.setColor("RED")
.setTitle("Uh Oh!")
.setDescription("This channel isn't a NSFW. Go to an NSFW channel to use this command 😏");

return message.channel.send(cmdEmbed);
};
module.exports.Cooldown = (message, cooldown) => {
const cmdEmbed = new Discord.MessageEmbed()
.setColor("RED")
.setTitle("Uh Oh!")
.setDescription("You need to calm down, you're using commands too quickly wait " + cooldown + " seconds.");

return message.channel.send(cmdEmbed);
};

0 comments on commit 90e7efc

Please sign in to comment.