SinisterRectus / Discordia

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

400 bad request when trying to ban? #337

Closed 3x71us1v3 closed 2 years ago

3x71us1v3 commented 2 years ago

I don't know why this would be happening. Code: local membertoban = message1.guild:getMember(grantId) local ban = membertoban.guild:banUser(membertoban.user, "grant", 64)

object-Object commented 2 years ago

As documented on the Guild page, the third argument of guild:banUser, days, must be between 0 and 7. Also, the best way to get help with your code is to join the Discord API or Discordia servers, rather than opening an issue on GitHub.

3x71us1v3 commented 2 years ago

Oh, I see. Thank you :)