krisppurg / dimscord

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

Message components follow up #64

Closed ire4ever1190 closed 3 years ago

ire4ever1190 commented 3 years ago

Sorry about missing this in the original PR

This adds in the functionality to get the message component data from an interaction ApplicationCommandInteractionData now has another case statement to check if it is a command or a component which is necessary to separate out the different data (Since they are basically two entirely different structures in the discord api

krisppurg commented 3 years ago

Just checking have you tested?

ire4ever1190 commented 3 years ago

Yes, tested and updated the example to now use the INTERACTION_CREATE event