Disable slash command in MP

Hello ! I don't understand how can I disable slash commands in DM. I test this in my command options: runIn: "GUILD_ANY", But it's not work. Thank you!
6 Replies
Favna
Favna2w ago
they should be disabled in the sense that using them throws the bot to chatInputCommandDenied but they will still show up unless you do not use global registration of the commands but rather guild specific registration
Seren_Modz 21
Seren_Modz 212w ago
or use integration types to limit to guilds
Favna
Favna2w ago
oh right that's a thing now too I forgot
Mathias
MathiasOP2w ago
How to do that?
Seren_Modz 21
Seren_Modz 212w ago
if your using the builders to create your slash commands, then SlashCommandBuilder#setIntegrationTypes() otherwise the integrationTypes property
Seren_Modz 21
Seren_Modz 212w ago
GitHub
examples/examples/with-typescript-complete/src/commands/General/pin...
Various examples of setting up your bot with the Sapphire Framework - sapphiredev/examples

Did you find this page helpful?