mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 06:24:43 +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 () => {
|
||||
try {
|
||||
|
|
|
@ -63,7 +63,7 @@ const commands = [
|
|||
},
|
||||
];
|
||||
|
||||
const rest = new REST({ version: '9' }).setToken('token');
|
||||
const rest = new REST({ version: '10' }).setToken('token');
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
|
|
|
@ -87,7 +87,7 @@ class Options extends null {
|
|||
$browser: 'discord.js',
|
||||
$device: 'discord.js',
|
||||
},
|
||||
version: 9,
|
||||
version: 10,
|
||||
},
|
||||
rest: DefaultRestOptions,
|
||||
jsonTransformer: Transformers.toSnakeCase,
|
||||
|
|
|
@ -81,7 +81,7 @@ export interface RESTOptions {
|
|||
userAgentAppendix: string;
|
||||
/**
|
||||
* The version of the API to use
|
||||
* @default '9'
|
||||
* @default '10'
|
||||
*/
|
||||
version: string;
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue