Discord bot to open dong files

Tidy up commands

Changed files
+2 -6
src
commands
-2
src/commands/dong/create.ts
···
image: await download(image),
audio: await download(audio),
};
-
console.log(downloaded);
const dong = new File(
[await createDong(downloaded.image, downloaded.audio)],
filename,
{ type: "application/prs.vielle.dong" }
);
-
console.log(dong);
await interaction.editReply({
files: [
···
image: await download(image),
audio: await download(audio),
};
const dong = new File(
[await createDong(downloaded.image, downloaded.audio)],
filename,
{ type: "application/prs.vielle.dong" }
);
await interaction.editReply({
files: [
+2 -4
src/commands/dong/open.ts
···
import {
AttachmentBuilder,
ChatInputCommandInteraction,
SlashCommandBuilder,
} from "discord.js";
import type { customClient } from "../..";
···
interaction: ChatInputCommandInteraction & { client: customClient }
) => {
const dong = interaction.options.getAttachment("dong", true);
-
await interaction.deferReply();
const downloadedDong = await download(dong);
-
console.log(downloadedDong);
const output = await readDong(downloadedDong);
if (typeof output === "string") {
···
return;
}
const { image, audio } = output;
-
-
console.log(image, audio);
await interaction.editReply({
files: [
···
import {
AttachmentBuilder,
ChatInputCommandInteraction,
+
MessageFlags,
SlashCommandBuilder,
} from "discord.js";
import type { customClient } from "../..";
···
interaction: ChatInputCommandInteraction & { client: customClient }
) => {
const dong = interaction.options.getAttachment("dong", true);
+
await interaction.deferReply({flags: MessageFlags.Ephemeral});
const downloadedDong = await download(dong);
const output = await readDong(downloadedDong);
if (typeof output === "string") {
···
return;
}
const { image, audio } = output;
await interaction.editReply({
files: [