From af1202af07b7cf91e35c5b23d12e0fd1ab63f5d3 Mon Sep 17 00:00:00 2001 From: DarkGuy10 <62807269+DarkGuy10@users.noreply.github.com> Date: Tue, 12 Dec 2023 12:56:43 +0530 Subject: [PATCH] fix: remove intent specifications gets rid of the node deprecation warning --- src/cli.ts | 4 +--- src/client/index.ts | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index 5b8ef99..4c0454f 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -38,9 +38,7 @@ const argv = yargs(hideBin(process.argv)) let _spinner = spinner() -const client = new NukecordClient({ - intents: ['GUILDS'], -}) +const client = new NukecordClient() let targetGuild: Guild diff --git a/src/client/index.ts b/src/client/index.ts index ef8f0a8..d9db8e2 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -1,14 +1,10 @@ -import { Client, ClientOptions } from 'discord.js-selfbot-v13' +import { Client } from 'discord.js-selfbot-v13' /** * The NukecordClient that extends djs-selfbot client * Slightly modified to match our needs */ class NukecordClient extends Client { - constructor(props: ClientOptions) { - super(props) - } - /** * Wait for the client to get ready. * So we don't have to split the code into two parts.