Open priyanuj-gogoi opened 1 year ago
Just had a look at this, and it's more complicated that it might first seem.
These are the two big issues:
GuildCheck.anyId([1, 2, 3])
), which can then lead to overlaps with other commands: command A with guilds 1, 2 and 3 conflicts with command B with guild 2. This complicates the detection algorithm quite a bit.!test
in guild 1 should run the global !test
or the guild !test
.I think the best solution would be to disallow this. It is supported by Discord, but I don't think it's great for UX and it's ambiguous how nyxx_commands should handle it.
Describe the bug
Throws
CommandRegistrationError
when trying to create a guild & a global slash command having same name.To Reproduce
Create a guild & a global slash command with same name.
CommandsPlugin()
.Expected behavior
Perform the below
curl
command & then, check your bot slash commands. You'll see 2 slash commands having same nameslash
. Here, one is guild & the other one is global. This is what we want i.e to create guild & global slash commands with same name innyxx_commands
.Desktop:
dev
branch)main
branch)