arjunattam / vscode-chat

Chat with your team while you collaborate over code using VS Live Share
https://marketplace.visualstudio.com/items?itemName=karigari.chat
GNU General Public License v3.0
529 stars 67 forks source link

[vscode] [discord] Invalid token #510

Open iDams opened 3 years ago

iDams commented 3 years ago

%0A%0A- Extension Version: 0.35.0%0A- OS Version: Windows_NT x64 10.0.19042%0A- VSCode version: 1.52.0

Excigma commented 3 years ago

This seems to be caused by https://github.com/vsls-contrib/chat/blob/master/src/discord/index.ts#L118

  async validateToken(): Promise<CurrentUser | undefined> {

sending the incorrect Authorization header

Check: https://discord.com/developers/docs/reference#authentication

After forcing the token type to be "Bot" I was able to login with a bot token, however new messages weren't being displayed