GitSparTV / discordia-slash

Discordia application commands extension
MIT License
38 stars 13 forks source link

User option fails if user not in server #8

Closed checkraisefold closed 1 year ago

checkraisefold commented 2 years ago

If you pass a user that's not in the server to a slash command with a user option, it will error. Seems to be because it checks resolved.members which is actually resolved.users when the user isn't in the server. https://github.com/GitSparTV/discordia-slash/blob/master/libs/client/Client.lua#L171

GitSparTV commented 2 years ago

In what situations guild commands will fail on this?

checkraisefold commented 2 years ago

In what situations guild commands will fail on this?

If you have a slash command with a user option, and you <@id> mention someone that's not in the guild, the command fails and discordia-slash throws an error from line 171.

GitSparTV commented 2 years ago

I see, make a PR, I no longer maintain this and don't have time

Ta-noshii commented 1 year ago

Close this issue? #11