feat: update invite api

This commit is contained in:
Elysia
2023-05-24 20:07:26 +07:00
parent c902304236
commit 07a737879e
4 changed files with 11 additions and 4 deletions

View File

@@ -337,7 +337,9 @@ class Invite extends Base {
location_channel_type: ChannelTypes[this.channel?.type] ?? 0,
};
await this.client.api.invites(this.code).post({
data: {},
data: {
session_id: this.client.session_id,
},
headers: {
'X-Context-Properties': Buffer.from(JSON.stringify(dataHeader), 'utf8').toString('base64'),
},