Make it work in dm too
This commit is contained in:
parent
2b93b03816
commit
68b32fc287
1 changed files with 2 additions and 1 deletions
|
@ -172,9 +172,10 @@ class tweetCommand extends Command {
|
|||
.addField('Link', `https://twitter.com/i/status/${tweetid}`, true)
|
||||
.addField('Tweet ID', tweetid, true)
|
||||
.addField('Author', `${message.author.username} (${message.author.id})`, true)
|
||||
.addField('Guild', `${message.guild.name} (${message.guild.id})`, true)
|
||||
.setTimestamp();
|
||||
|
||||
if (message.guild) Embed.addField('Guild', `${message.guild.name} (${message.guild.id})`, true);
|
||||
|
||||
if (Attachment[0]) Embed.setImage(Attachment[0].url);
|
||||
|
||||
channel = client.channels.resolve(twiChannel);
|
||||
|
|
Loading…
Reference in a new issue