Fix bug report command when not uploading image
Some checks are pending
ptero-push / build (push) Waiting to run
Some checks are pending
ptero-push / build (push) Waiting to run
This commit is contained in:
parent
f94c5f0e6b
commit
e2596c4443
2
index.js
2
index.js
|
@ -1378,7 +1378,7 @@ discord.on("interactionCreate", async (interaction) => {
|
|||
icon_url: interaction.user.displayAvatarURL()
|
||||
},
|
||||
image: {
|
||||
url: interaction.options.getAttachment("screenshot").url || null
|
||||
url: interaction.options.getAttachment("screenshot") ? interaction.options.getAttachment("screenshot").url : null
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue