What's the type for 'SlashCommandBuilder' in Typescript?

I am using typescript, trying to create an interface for my commands. I used SlashCommandBuilder as a type for data which contains the builder stuff. But it doesn't accept the type... what should I do?
1 Reply
neon
neon2y ago
nvm i found them, I used:
data: SlashCommandBuilder | SlashCommandSubcommandsOnlyBuilder;
data: SlashCommandBuilder | SlashCommandSubcommandsOnlyBuilder;