Updated embed colours from orange to green
parent
ba533e595e
commit
d98071ce5b
|
@ -22,7 +22,7 @@ module.exports = {
|
|||
if (!messageArgs[1]) return message.reply('Please specify a topic.');
|
||||
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('ORANGE')
|
||||
.setColor('GREEN')
|
||||
.setFooter(`Called By: ${message.author.tag}`)
|
||||
.setTimestamp()
|
||||
.setTitle("8Ball")
|
||||
|
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
|
||||
|
||||
const embed = new MessageEmbed()
|
||||
.setColor('ORANGE')
|
||||
.setColor('GREEN')
|
||||
.setFooter(`Called By: ${message.author.tag}`)
|
||||
.setTimestamp()
|
||||
.setTitle("Ping")
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
const { Message, Client, MessageEmbed } = require("discord.js");
|
||||
const discord = require('discord.js')
|
||||
|
||||
module.exports = {
|
||||
name: "suggestion",
|
||||
aliases: ['suggest'],
|
||||
/**
|
||||
*
|
||||
* @param {Client} client
|
||||
* @param {Message} message
|
||||
* @param {String[]} args
|
||||
*/
|
||||
run: async (client, message, args) => {
|
||||
if(message.guild && message.guild.id === '744586833135927366')
|
||||
{
|
||||
|
||||
const suggestChannel = client.channels.cache.get('858348481412726794')
|
||||
let messageArgs = args.join(' ');
|
||||
const threadAuthor = message.member.displayName;
|
||||
const embed = new discord.MessageEmbed()
|
||||
.setColor('ORANGE')
|
||||
.setFooter(`Called By: ${message.author.tag}`)
|
||||
.setTimestamp()
|
||||
.setAuthor(message.author.tag, message.author.displayAvatarURL({ dynamic: true }))
|
||||
.setDescription(messageArgs);
|
||||
|
||||
suggestChannel.send({ embeds: [embed] }).then((msg) =>{
|
||||
msg.react('<:upvote:881547644672024607>');
|
||||
msg.react('<:downvote:881547582650851330>');
|
||||
msg.startThread({
|
||||
name: `${threadAuthor} - ${messageArgs}`,
|
||||
autoArchiveDuration: 60,
|
||||
type: 'GUILD_PUBLIC_THREAD'
|
||||
});
|
||||
|
||||
message.delete();
|
||||
message.channel.send('Your suggestion has been sent to: <#858348481412726794>')
|
||||
}).catch((err)=>{
|
||||
throw err;
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
message.reply("That is not available within this server")
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue