Discord bot to open dong files

Tidy up commands

+2 -6
-2
src/commands/dong/create.ts
··· 51 image: await download(image), 52 audio: await download(audio), 53 }; 54 - console.log(downloaded); 55 56 const dong = new File( 57 [await createDong(downloaded.image, downloaded.audio)], 58 filename, 59 { type: "application/prs.vielle.dong" } 60 ); 61 - console.log(dong); 62 63 await interaction.editReply({ 64 files: [
··· 51 image: await download(image), 52 audio: await download(audio), 53 }; 54 55 const dong = new File( 56 [await createDong(downloaded.image, downloaded.audio)], 57 filename, 58 { type: "application/prs.vielle.dong" } 59 ); 60 61 await interaction.editReply({ 62 files: [
+2 -4
src/commands/dong/open.ts
··· 1 import { 2 AttachmentBuilder, 3 ChatInputCommandInteraction, 4 SlashCommandBuilder, 5 } from "discord.js"; 6 import type { customClient } from "../.."; ··· 23 interaction: ChatInputCommandInteraction & { client: customClient } 24 ) => { 25 const dong = interaction.options.getAttachment("dong", true); 26 - await interaction.deferReply(); 27 28 const downloadedDong = await download(dong); 29 - console.log(downloadedDong); 30 31 const output = await readDong(downloadedDong); 32 if (typeof output === "string") { ··· 34 return; 35 } 36 const { image, audio } = output; 37 - 38 - console.log(image, audio); 39 40 await interaction.editReply({ 41 files: [
··· 1 import { 2 AttachmentBuilder, 3 ChatInputCommandInteraction, 4 + MessageFlags, 5 SlashCommandBuilder, 6 } from "discord.js"; 7 import type { customClient } from "../.."; ··· 24 interaction: ChatInputCommandInteraction & { client: customClient } 25 ) => { 26 const dong = interaction.options.getAttachment("dong", true); 27 + await interaction.deferReply({flags: MessageFlags.Ephemeral}); 28 29 const downloadedDong = await download(dong); 30 31 const output = await readDong(downloadedDong); 32 if (typeof output === "string") { ··· 34 return; 35 } 36 const { image, audio } = output; 37 38 await interaction.editReply({ 39 files: [