fix: missing deps (2)

This commit is contained in:
March 7th 2022-10-15 12:29:31 +07:00
parent 17b3ca237c
commit 89df4addb9
4 changed files with 4 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "discord.js-selfbot-v13",
"version": "2.8.3",
"version": "2.8.4",
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
"main": "./src/index.js",
"types": "./typings/index.d.ts",

View File

@ -3,6 +3,7 @@
const process = require('node:process');
const { setInterval, setTimeout } = require('node:timers');
const { Collection } = require('@discordjs/collection');
const { getVoiceConnection } = require('@discordjs/voice');
const BaseClient = require('./BaseClient');
const ActionsManager = require('./actions/ActionsManager');
const ClientVoiceManager = require('./voice/ClientVoiceManager');
@ -300,7 +301,6 @@ class Client extends BaseClient {
* @readonly
*/
get callVoice() {
const { getVoiceConnection } = require('@discordjs/voice');
return getVoiceConnection(null);
}

View File

@ -1,7 +1,7 @@
'use strict';
const { Collection } = require('@discordjs/collection');
const { joinVoiceChannel, entersState, VoiceConnectionStatus } = require('@discordjs/voice');
const { Channel } = require('./Channel');
const TextBasedChannel = require('./interfaces/TextBasedChannel');
const InteractionManager = require('../managers/InteractionManager');
@ -115,7 +115,6 @@ class DMChannel extends Channel {
* @returns {Promise<VoiceConnection>}
*/
call(options = {}) {
const { joinVoiceChannel, entersState, VoiceConnectionStatus } = require('@discordjs/voice');
return new Promise((resolve, reject) => {
if (!this.client.options.patchVoice) {
reject(