Skip to content

Commit

Permalink
chore: remove discordjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vann-Dev committed Sep 22, 2024
1 parent 7dabcb6 commit 22666d3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,20 @@ import { fileURLToPath } from 'url'
import cors from '@fastify/cors'
import Middie from '@fastify/middie'
import { bypassMiddleware } from './constant/bypassMiddleware.js';
import { Client } from 'discord.js';

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)

export const discordClient = new Client({
intents: [
"Guilds"
],
rest: {
version: "10"
}
})
// export const discordClient = new Client({
// intents: [
// "Guilds"
// ],
// rest: {
// version: "10"
// }
// })

discordClient.login(process.env.DISCORD_TOKEN)
// discordClient.login(process.env.DISCORD_TOKEN)

export type AppOptions = {
// Place your custom options for app below here.
Expand Down

0 comments on commit 22666d3

Please sign in to comment.