You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't have a guild command with the same name as a guild command and the other way round.
Reproduction Steps
The command handler will only call the callback of the first found command in the list.
Minimal Reproducible Code
@client.command(guild_ids= ["937364424208039957"])asyncdefping(interaction):
"""Replies with Pong!"""returnawaitinteraction.reply(content="Pong!") # Lying is a bad thing.@client.command()asyncdefping(interaction):
"""Replies with Pong!"""returnawaitinteraction.reply(content="Pong!") # Just because this is the second command doesn't mean we can lie.
Expected Results
Not too sure actually.
Actual Results
It'll call a single command... yeah I don't know how to go about this
Intents
No response
System Information
All.
Checklist
This bug was found on the latest version of EpikCord
You have checked that there is no issue already mentioning this bug, open or closed
Full details of the bug have been provided/shown, including full tracebacks in case of exceptions
All bot tokens have been hidden/omitted from any screenshots or code, if any
Additional Context
No response
The text was updated successfully, but these errors were encountered:
I think we can safely flag this as 'unintended behaviour 'because the first command overwrites the other command. Or we may do this
{"global": commands, "guild_id": commands}
You can't have a guild command with the same name as a guild command and the other way round.
The title of this issue contradicts what you said here. Did you mean "global" instead of "guild"?
Also, looking at your example, the "newer" version of that ping callback would override the other. Probably not that relevant but just pointing it out.
What is meant by this is, if the developer tries to add 2 commands with the same name, where one of them is global, the other is a guild, the latest commands callback is always called I'd assume, and so we need to be able to differentiate between what command is being called, as we before only get by name.
Summary
You can't have a guild command with the same name as a guild command and the other way round.
Reproduction Steps
The command handler will only call the callback of the first found command in the list.
Minimal Reproducible Code
Expected Results
Not too sure actually.
Actual Results
It'll call a single command... yeah I don't know how to go about this
Intents
No response
System Information
All.
Checklist
Additional Context
No response
The text was updated successfully, but these errors were encountered: