set for 911/911 feature/debugging

This commit is contained in:
SowinskiBraeden committed 2022-08-05 15:26:00 -07:00
1 parent 1325a1f80c
commit 7fd292650d
5 files changed
+421 -62

No files matched your search

+13 -6
View File
@@ -35,15 +35,22 @@ module.exports = {
let avatar = interaction.member.user.avatar;
const tweetEmbed = new MessageEmbed()
.setColor('#0099ff')
.setTitle('New Twitter Notifciation')
.setThumbnail('https://static.vecteezy.com/system/resources/previews/002/534/045/original/social-media-twitter-logo-blue-isolated-free-vector.jpg')
.setAuthor({ name: `${interaction.member.user.username}`, iconURL: `https://cdn.discordapp.com/avatars/${userID}/${avatar}.png` })
.setDescription(args[0].value)
.setTimestamp()
.setColor('#0099ff')
.setTitle('New Twitter Notifciation')
.setThumbnail('https://static.vecteezy.com/system/resources/previews/002/534/045/original/social-media-twitter-logo-blue-isolated-free-vector.jpg')
.setAuthor({ name: `${interaction.member.user.username}`, iconURL: `https://cdn.discordapp.com/avatars/${userID}/${avatar}.png` })
.setDescription(args[0].value)
.setTimestamp()
if (client.exists(GuildDB.tweetChannel)) {
const channel = interaction.guild.channels.cache.find(channel => channel.id === GuildDB.tweetChannel);
if (!channel) {
const embed = new MessageEmbed()
.setDescriptions(`**Internal Error:** ${err}\nThe channel may have been deleted\nContact the Developers\nhttps://discord.gg/YCXhvy9uZw`)
.setColor("RED")
return interaction.send({ embeds: [embed] });
}
channel.send({ embeds: [tweetEmbed] });
return interaction.send('Tweeted!');
} else {