shayypy / guilded.py

Asynchronous Guilded API wrapper for Python
https://guildedpy.rtfd.io
Other
135 stars 25 forks source link

Command parser should merge user/channel mentions into a single argument #49

Closed Reapimus closed 1 year ago

Reapimus commented 1 year ago

Currently, I have to explain to users that they need to surround a user or channel mention in quotation marks purely due to the fact that the library's command parser recognizes user/channel mentions with multiple words separated by spaces as individual arguments instead of a single argument. It would be much better if the command parser could recognize user/channel mentions toward users & channels in the bot's cache and merge them into one argument.

shayypy commented 1 year ago

This is not (reasonably) possible currently due to Guilded limitations. The raw data you receive from Guilded is the name of the mentioned object, including spaces. Ideally, mentions should have their own machine-readable format within Guilded's markdown superset. They are hardly useful as mentions otherwise.