diff --git a/src/index.js b/src/index.js index 99d12bc..cb9ded0 100644 --- a/src/index.js +++ b/src/index.js @@ -188,9 +188,11 @@ bot.once("ready", async () => { const commands = []; for (const command of interactionCommands.values()) { - const options = Object.values(command.options); - for (const option of options) { - delete option.default; + const options = []; + for (const option of command.options) { + const newOption = Object.assign({}, option); + delete newOption.default; + options.push(newOption); } // stupid hack