Fix bug report command when not uploading image
Some checks are pending
ptero-push / build (push) Waiting to run

This commit is contained in:
Christopher Cookman 2025-05-27 15:52:42 -06:00
parent f94c5f0e6b
commit e2596c4443

View file

@ -1378,7 +1378,7 @@ discord.on("interactionCreate", async (interaction) => {
icon_url: interaction.user.displayAvatarURL() icon_url: interaction.user.displayAvatarURL()
}, },
image: { image: {
url: interaction.options.getAttachment("screenshot").url || null url: interaction.options.getAttachment("screenshot") ? interaction.options.getAttachment("screenshot").url : null
}, },
fields: [ fields: [
{ {