Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const BaseCommand = require('../../utils/structures/BaseCommand');
- const discord = require("discord.js")
- module.exports = class SayCommand extends BaseCommand {
- constructor() {
- super('say', 'fun', []);
- }
- async run(client, message, args) {
- const messageToSay = args.join(" ");
- const sayEmbed = new Discord.MessageEmbed()
- .setTitle(`${message.author.tag} says: ${messageToSay}`)
- .setFooter(message.author.tag ,message.author.displayAvatarURL())
- .setColor("#00a170")
- .setTimestamp()
- .setTimestamp();
- try{
- await message.channel.send(sayEmbed);
- } catch (err) {
- console.log(err);
- message.channel.send('I am not able to say that message.');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement