Added Image to ReactionPanel

This commit is contained in:
ItzEmerald committed 2021-03-24 16:25:16 +00:00
1 parent 4f9837d991
commit e7a0544004
10 files changed
+826 -6

No files matched your search

+5 -1
View File
@@ -16,7 +16,11 @@ module.exports = async (bot, member) => {
console.log(`[${supportbot.Bot_Name}]: ${member.user.username} has joined ${member.guild.name}!`)
console.log(supportbot.AutoRole_Role)
const role = member.guild.roles.cache.find(role => role.name === supportbot.AutoRole_Role)
member.roles.add(role).catch(console.error);
if (supportbot.SystemMessage_Type === "embed") {
const GuildAddMember = new Discord.MessageEmbed()
.setTitle(supportbot.Welcome_Title)
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = async (client, reaction, user) => {
await reaction.users.remove(user.id)
try {
const cmd = client.commands.get("ticket");
const cmd = client.commands.get(supportbot.NewTicket);
if(!cmd) return;
cmd.execute(message, message.content);
+14 -2
View File
@@ -20,7 +20,7 @@ module.exports = async (bot) => {
console.log(`\u001b[37m`, `${supportbot.Bot_Name} has successfully connected to discord`)
console.log(`\u001b[32m`, `―――――――――――――――――― SupportBot ――――――――――――――――――`)
if (supportbot.ReactionTickets === "true") {
if (supportbot.ReactionTickets === true) {
let chan1 = bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel)
if (!chan1) {
@@ -33,7 +33,19 @@ module.exports = async (bot) => {
.setTitle(supportbot.ReactionMessage.replace(/%reaction_emoji%/g, supportbot.ReactionEmoji))
.setColor(supportbot.SuccessColour)
.setFooter(supportbot.EmbedFooter);
if (supportbot.ReactionPanel_Description = true) {
embed.setDescription(supportbot.ReactionDescription)
}
if (supportbot.ReactionPanel_Thumbnail = true) {
embed.setThumbnail(supportbot.ReactionThumbnail)
}
if (supportbot.ReactionPanel_Image = true) {
embed.setThumbnail(supportbot.ReactionImage)
}
bot.channels.cache.find(channel => channel.name === supportbot.ReactionChannel).send({
embed: embed
}).then(r => {
@@ -51,4 +63,4 @@ module.exports = async (bot) => {
}
};
};