add eslint & prettier
This commit is contained in:
parent
7950e23236
commit
0f15e2fb2c
6 changed files with 805 additions and 13 deletions
10
index.ts
10
index.ts
|
@ -13,6 +13,7 @@ const client = new Client({
|
|||
Intents.FLAGS.DIRECT_MESSAGES,
|
||||
Intents.FLAGS.GUILD_MEMBERS,
|
||||
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
|
||||
Intents.FLAGS.GUILD_BANS,
|
||||
],
|
||||
});
|
||||
|
||||
|
@ -22,7 +23,14 @@ client.once('ready', async () => {
|
|||
console.log(green(bold('Discord bot ready!')));
|
||||
console.log(
|
||||
'Invite link:',
|
||||
blue(underline(client.generateInvite({ scopes: ['bot'] })))
|
||||
blue(
|
||||
underline(
|
||||
client.generateInvite({
|
||||
scopes: ['bot'],
|
||||
permissions: ['ADMINISTRATOR'],
|
||||
})
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue