Skip to content

Commit

Permalink
fix(satori): missing headers for satori api (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieuzest authored Mar 19, 2024
1 parent 8321ff6 commit 321b8e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion adapters/satori/src/ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ export class SatoriAdapter<C extends Context = Context> extends Adapter.WsClient
bot = new SatoriBot(this.ctx, login)
this.bots.push(bot)
bot.adapter = this
bot.http = this.http
bot.http = this.http.extend({
headers: {
'X-Platform': platform,
'X-Self-ID': selfId,
},
})
bot.status = login.status
}

Expand Down

0 comments on commit 321b8e3

Please sign in to comment.