This commit is contained in:
Christopher Cookman 2024-09-05 13:50:10 -06:00
parent db91a455be
commit 3f8178eff6
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -362,7 +362,7 @@ discord.on("interactionCreate", async (interaction) => {
case Discord.InteractionType.ModalSubmit: case Discord.InteractionType.ModalSubmit:
assetId = interaction.fields.getTextInputValue("assetId"); assetId = interaction.fields.getTextInputValue("assetId");
cookie = interaction.fields.getTextInputValue("cookie"); cookie = interaction.fields.getTextInputValue("cookie");
bulk([new String(new Number(assetId))], cookie).then((data) => { bulk([new String(new Number(assetId))], cookie ? cookie : null).then((data) => {
if (data.data[assetId].status == "failure") { if (data.data[assetId].status == "failure") {
return interaction.reply({ return interaction.reply({
embeds: [{ embeds: [{