await defer reply

This commit is contained in:
Christopher Cookman 2024-05-16 21:09:50 -06:00
parent 4e1d52178f
commit 69ab79e930
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42

View file

@ -940,7 +940,7 @@ discord.on("interactionCreate", async (interaction) => {
case "setupall":
if (!config.discord.owner) return interaction.reply({ content: "Owner not set in config", ephemeral: true });
if (interaction.user.id !== config.discord.owner) return interaction.reply({ content: "You are not the owner", ephemeral: true });
interaction.deferReply({ ephemeral: true })
await interaction.deferReply({ ephemeral: true })
var category;
// Create channels for all rooms