Document .-.
maybe
This commit is contained in:
22
Document/HTTPOption.md
Normal file
22
Document/HTTPOption.md
Normal file
@@ -0,0 +1,22 @@
|
||||
## HTTP options:
|
||||
|
||||
```js
|
||||
/* If you want to change the API version from v9 to v10, here are the instructions */
|
||||
const { Client } = require('discord.js-selfbot-v13');
|
||||
const client = new Client({
|
||||
ws: {
|
||||
version: 10
|
||||
},
|
||||
http: {
|
||||
version: 10,
|
||||
header: {
|
||||
cookie: '', // If you want to use cookies, here is the place
|
||||
}
|
||||
}
|
||||
});
|
||||
/* Discord fingerprint ??? idk ... */
|
||||
/**
|
||||
* const { data } = await axios.get('https://discord.com/api/v9/experiments');
|
||||
* client.options.http.header['x-fingerprint'] = data.fingerprint
|
||||
*/
|
||||
```
|
||||
Reference in New Issue
Block a user