SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
698 stars 143 forks source link

Getting user with name #286

Closed tooslzy closed 3 years ago

tooslzy commented 3 years ago

Is there a way to get a user with the user's name instead of their id like for Dyno, you can do cmd [name] and it'll do it to the user with that name. This is how I get the user with the id from id or mention. local user = client:getUser(msg.mentionedUsers[1] and msg.mentionedUsers[1][1] or str:match("^%s*(%d+)") or msg.author.id)

object-Object commented 3 years ago

We'd be happy to answer support questions in the Discord API (#lua_discordia) or Discordia servers. Github issues are meant for bug reports, etc.

tooslzy commented 3 years ago

Oh, my bad. Thanks.