-
Hi! I follow the guide to register slash commands. But after I change version from
index.ts:
I get this error:
AFAIK v9 version will be deprecated since April 30th. How do I register commands through v10 API? Can we update the guide? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
send slash command you're trying to register. error says you're missing a |
Beta Was this translation helpful? Give feedback.
-
You need to call toJSON() on the builder. Otherwise it will just send the builder to discord. import { pingCommand } from './ping'
export const commandList = [pingCommand.builder.toJSON()] |
Beta Was this translation helpful? Give feedback.
You need to call toJSON() on the builder. Otherwise it will just send the builder to discord.