feat: add API v10 support (#7477)

* feat: add API v10 support

* refactor: update deps

* chore: rebase fixes
This commit is contained in:
Suneet Tipirneni
2022-03-15 16:37:07 -04:00
committed by GitHub
parent 9b0d8cb2d8
commit 72577c4bfd
144 changed files with 196 additions and 203 deletions

View File

@@ -1,7 +1,7 @@
'use strict';
const assert = require('node:assert');
const { ChannelType, GatewayIntentBits } = require('discord-api-types/v9');
const { ChannelType, GatewayIntentBits } = require('discord-api-types/v10');
const { token } = require('./auth');
const { Client } = require('../src');

View File

@@ -6,7 +6,7 @@ const request = require('superagent');
const ytdl = require('ytdl-core');
const { token, song } = require('./auth.js');
const { Client } = require('../src');
const { ChannelType, GatewayIntentBits } = require('discord-api-types/v9');
const { ChannelType, GatewayIntentBits } = require('discord-api-types/v10');
console.time('magic');

View File

@@ -1,6 +1,6 @@
'use strict';
const { GatewayIntentBits } = require('discord-api-types/v9');
const { GatewayIntentBits } = require('discord-api-types/v10');
const { token, guildId, channelId, messageId } = require('./auth.js');
const { Client, ReactionCollector } = require('../src');

View File

@@ -5,7 +5,7 @@ const path = require('node:path');
const process = require('node:process');
const { setTimeout: sleep } = require('node:timers/promises');
const util = require('node:util');
const { GatewayIntentBits } = require('discord-api-types/v9');
const { GatewayIntentBits } = require('discord-api-types/v10');
const { fetch } = require('undici');
const { owner, token } = require('./auth.js');
const { Client, MessageAttachment, Embed } = require('../src');

View File

@@ -2,7 +2,7 @@
const process = require('node:process');
const { setTimeout } = require('node:timers');
const { GatewayIntentBits } = require('discord-api-types/v9');
const { GatewayIntentBits } = require('discord-api-types/v10');
const { token } = require('./auth.json');
const { Client } = require('../src');

View File

@@ -1,7 +1,7 @@
'use strict';
const process = require('node:process');
const { GatewayIntentBits } = require('discord-api-types/v9');
const { GatewayIntentBits } = require('discord-api-types/v10');
const { token, prefix, owner } = require('./auth.js');
const { Client } = require('../src');

View File

@@ -1,7 +1,7 @@
'use strict';
const process = require('node:process');
const { GatewayIntentBits } = require('discord-api-types/v9');
const { GatewayIntentBits } = require('discord-api-types/v10');
const { token, prefix, owner } = require('./auth.js');
const { Client, Options, Formatters } = require('../src');

View File

@@ -4,7 +4,7 @@ const fs = require('node:fs');
const path = require('node:path');
const { setTimeout: sleep } = require('node:timers/promises');
const util = require('node:util');
const { GatewayIntentBits } = require('discord-api-types/v9');
const { GatewayIntentBits } = require('discord-api-types/v10');
const { fetch } = require('undici');
const { owner, token, webhookChannel, webhookToken } = require('./auth.js');
const { Client, MessageAttachment, Embed, WebhookClient } = require('../src');