Skip to content

Commit

Permalink
fix(gateway): use version 10 (#7689)
Browse files Browse the repository at this point in the history
* fix: make gateway use version 10

* chore: fix readme rest versions
  • Loading branch information
suneettipirneni authored Mar 26, 2022
1 parent cedd053 commit 8880de0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const commands = [
},
];

const rest = new REST({ version: '9' }).setToken('token');
const rest = new REST({ version: '10' }).setToken('token');

(async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const commands = [
},
];

const rest = new REST({ version: '9' }).setToken('token');
const rest = new REST({ version: '10' }).setToken('token');

(async () => {
try {
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/src/util/Options.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Options extends null {
$browser: 'discord.js',
$device: 'discord.js',
},
version: 9,
version: 10,
},
rest: DefaultRestOptions,
jsonTransformer: Transformers.toSnakeCase,
Expand Down
2 changes: 1 addition & 1 deletion packages/rest/src/lib/REST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface RESTOptions {
userAgentAppendix: string;
/**
* The version of the API to use
* @default '9'
* @default '10'
*/
version: string;
/**
Expand Down

0 comments on commit 8880de0

Please sign in to comment.