krisppurg / dimscord

A Discord Bot & REST Library for Nim.
https://krisppurg.github.io/dimscord/
MIT License
222 stars 22 forks source link

Add user commands and message commands #62

Closed ire4ever1190 closed 2 years ago

ire4ever1190 commented 2 years ago

Implemented from these two documents

ApplicationCommandInteractionData now has a kind parameter to not break existing code (and because I think it is cleaner than using options). This parameter is used to differentiate between slash, user, and message commands since they have different interaction data

Have tested user, message and slash commands and they all work