Try to fix bot crash
This commit is contained in:
parent
90fbd3f717
commit
c2ad28c36d
1 changed files with 3 additions and 1 deletions
|
@ -53,8 +53,10 @@ export async function expandDiscordLink(message: Message): Promise<void> {
|
||||||
name: `${messageToShow.author.username}#${messageToShow.author.discriminator}`,
|
name: `${messageToShow.author.username}#${messageToShow.author.discriminator}`,
|
||||||
iconURL: messageToShow.author.displayAvatarURL(),
|
iconURL: messageToShow.author.displayAvatarURL(),
|
||||||
})
|
})
|
||||||
.setDescription(messageToShow.content)
|
|
||||||
.setColor(Colors.Aqua);
|
.setColor(Colors.Aqua);
|
||||||
|
if (messageToShow.content) {
|
||||||
|
builder.setDescription(messageToShow.content);
|
||||||
|
}
|
||||||
if (messageToShow.attachments.size > 0) {
|
if (messageToShow.attachments.size > 0) {
|
||||||
let attachmentsString = "";
|
let attachmentsString = "";
|
||||||
messageToShow.attachments.forEach((value) => {
|
messageToShow.attachments.forEach((value) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue