serenity-rs / poise

Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
MIT License
597 stars 106 forks source link

Fix usage of additional_prefixes in the example #264

Open ravener opened 2 months ago

ravener commented 2 months ago

This did not work for me, the second prefix with the comma would not respond, after a while I came up with an assumption that maybe the first prefix gets matched and instead the comma becomes treated as part of the command name and no command matches, so this is easily fixed by trying to match the longer prefix first.