mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 04:14:46 +12:00
fix(gateway): use version 10 (#7689)
* fix: make gateway use version 10 * chore: fix readme rest versions
This commit is contained in:
parent
cedd0536ba
commit
8880de0cec
4 changed files with 4 additions and 4 deletions
|
@ -63,7 +63,7 @@ const commands = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const rest = new REST({ version: '9' }).setToken('token');
|
const rest = new REST({ version: '10' }).setToken('token');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -63,7 +63,7 @@ const commands = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const rest = new REST({ version: '9' }).setToken('token');
|
const rest = new REST({ version: '10' }).setToken('token');
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -87,7 +87,7 @@ class Options extends null {
|
||||||
$browser: 'discord.js',
|
$browser: 'discord.js',
|
||||||
$device: 'discord.js',
|
$device: 'discord.js',
|
||||||
},
|
},
|
||||||
version: 9,
|
version: 10,
|
||||||
},
|
},
|
||||||
rest: DefaultRestOptions,
|
rest: DefaultRestOptions,
|
||||||
jsonTransformer: Transformers.toSnakeCase,
|
jsonTransformer: Transformers.toSnakeCase,
|
||||||
|
|
|
@ -81,7 +81,7 @@ export interface RESTOptions {
|
||||||
userAgentAppendix: string;
|
userAgentAppendix: string;
|
||||||
/**
|
/**
|
||||||
* The version of the API to use
|
* The version of the API to use
|
||||||
* @default '9'
|
* @default '10'
|
||||||
*/
|
*/
|
||||||
version: string;
|
version: string;
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue