Skip to content

Commit

Permalink
fix: remove intent specifications
Browse files Browse the repository at this point in the history
gets rid of the node deprecation warning
  • Loading branch information
DarkGuy10 committed Dec 12, 2023
1 parent 6e7a5ce commit af1202a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 1 addition & 5 deletions src/client/index.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit af1202a

Please sign in to comment.