Closed kreimben closed 2 years ago
.addSubcommand((subcommand) => {
Because you used {}
for the function block, you need to explicitly return something from it. Without doing this, the function returns undefined.
The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the Discord server instead of opening an issue – you will get redirected there anyway.
Ok. Thanks.
Which package is this bug report for?
discord.js
Issue description
addSubcommand()
onnew SlashCommandBuilder()
.addSubcommand()
because terminal saidTypeError: Expected to receive a R builder, got undefined instead.
Code sample
Above are what terminal said.