krisppurg / dimscord

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

fix default_member_permissions and custom_id (in MessageComponent) #91

Closed t8m8 closed 1 year ago

t8m8 commented 1 year ago

I have fixed default_member_permissions for application command

krisppurg commented 1 year ago

Wait was custom_id always optional?

t8m8 commented 1 year ago

It is optional according to here https://discord.com/developers/docs/interactions/message-components#button-object-button-structure And it has none when button is linked button

Link buttons must have a url, and cannot have a custom_id

t8m8 commented 1 year ago

Maybe I should have separated the commits.

krisppurg commented 1 year ago

Maybe I should have separated the commits.

I can change the title of the PR, given that only few parts of code are changed