set for 911/911 feature/debugging
This commit is contained in:
5 files changed
+421
-62
No files matched your search
+13
-6
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user