discord / discord-api-docs

Official Discord API Documentation
https://discord.com/developers/docs/intro
Other
5.91k stars 1.25k forks source link

Enable/Disable Certain Slash Commands In Certain Channels #2663

Closed TotallyNotSethP closed 3 years ago

TotallyNotSethP commented 3 years ago

Description It would be an excellent feature if you could set certain slash commands to certain channels.

Why This is Needed For example, if I have a pokemon battle bot, I want to have a /joinbattle command in the matchmaking channel, and /attack in a battle channel, but it would be confusing to have each of those in every channel.

Alternatives Considered Just having every slash command in every channel.

Additional Details This should be implemented both user-side and in the API.

almostSouji commented 3 years ago

Looks like a dupe of the planned permissions update?

https://github.com/discord/discord-api-docs/issues/2315#issuecomment-761131184

TotallyNotSethP commented 3 years ago

Looks like a dupe of the planned permissions update?

#2315 (comment)

No that is for specific roles this is for specific channels

almostSouji commented 3 years ago

Overrides will be valid for a user or a role

So you can definitely do what you want with it.

TotallyNotSethP commented 3 years ago

"User or role"-specific is different than channel-specific

TotallyNotSethP commented 3 years ago

Nevermind, this was already approved here: https://github.com/discord/discord-api-docs/issues/2336#issuecomment-761147187