SinisterRectus / Discordia

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

401 - Unauthorized : GET https://discord.com/api/v7/users/@me and Could not authenticate, check token: HTTP Error 0 : 401: Unauthorized #303

Closed Suprewing closed 3 years ago

seyja commented 3 years ago

assuming you were passing your right token, in discordia 2.x you have to prefix it with Bot

Hellscaped commented 3 years ago

I have the same error. How do I prefix it?

Bilal2453 commented 3 years ago

Prefix it, as in pass Bot TOKEN, replace TOKEN with your real token (and not client secret).

Hellscaped commented 3 years ago

I just thought that was a placeholder. that makes so much sense