Slash commands in DMs #9126
-
Why are slash commands enabled in DMs by default when bots are mostly used in guilds, and commands are made while keeping guilds in mind? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not the creator of this feature and am just speculating. But I assume it's enabled by default for two reasons. One reason is that you can simply DM the bot instead of searching for the "bot-command" channel, which is full of spam from other bots. The second reason is most likely in larger servers. sending a slash command with multiple users using it at the same time. Can cause the bot's response to get lost within other users' responses. Trying to make DMs a more practical way instead of a guild channel. |
Beta Was this translation helpful? Give feedback.
-
Discord.js follows API spec. As documented here https://discord.com/developers/docs/interactions/application-commands#create-global-application-command you will see that being visible in DMs is the default for global application commands. |
Beta Was this translation helpful? Give feedback.
Discord.js follows API spec. As documented here https://discord.com/developers/docs/interactions/application-commands#create-global-application-command you will see that being visible in DMs is the default for global application commands.