diff --git a/package.json b/package.json index fec53da..0214f28 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bot_tamiseur", "description": "Listen to music and use fun commands with your friends!", - "version": "3.0.2", + "version": "3.0.3", "author": { "name": "Zachary Guénot" }, diff --git a/src/index.ts b/src/index.ts index 8370d61..23405a7 100755 --- a/src/index.ts +++ b/src/index.ts @@ -35,27 +35,30 @@ declare module 'discord.js' { // CLIENT INITIALIZATION -const client = new Client({ intents: [ - GatewayIntentBits.AutoModerationConfiguration, - GatewayIntentBits.AutoModerationExecution, - GatewayIntentBits.DirectMessageReactions, - GatewayIntentBits.DirectMessageTyping, - GatewayIntentBits.DirectMessages, - GatewayIntentBits.GuildEmojisAndStickers, - GatewayIntentBits.GuildIntegrations, - GatewayIntentBits.GuildInvites, - GatewayIntentBits.GuildMembers, - GatewayIntentBits.GuildMessageReactions, - GatewayIntentBits.GuildMessageTyping, - GatewayIntentBits.GuildMessages, - GatewayIntentBits.GuildModeration, - GatewayIntentBits.GuildPresences, - GatewayIntentBits.GuildScheduledEvents, - GatewayIntentBits.GuildVoiceStates, - GatewayIntentBits.GuildWebhooks, - GatewayIntentBits.Guilds, - GatewayIntentBits.MessageContent -] }) +const client = new Client({ + intents: [ + GatewayIntentBits.AutoModerationConfiguration, + GatewayIntentBits.AutoModerationExecution, + GatewayIntentBits.DirectMessageReactions, + GatewayIntentBits.DirectMessageTyping, + GatewayIntentBits.DirectMessages, + GatewayIntentBits.GuildEmojisAndStickers, + GatewayIntentBits.GuildIntegrations, + GatewayIntentBits.GuildInvites, + GatewayIntentBits.GuildMembers, + GatewayIntentBits.GuildMessageReactions, + GatewayIntentBits.GuildMessageTyping, + GatewayIntentBits.GuildMessages, + GatewayIntentBits.GuildModeration, + GatewayIntentBits.GuildPresences, + GatewayIntentBits.GuildScheduledEvents, + GatewayIntentBits.GuildVoiceStates, + GatewayIntentBits.GuildWebhooks, + GatewayIntentBits.Guilds, + GatewayIntentBits.MessageContent + ], + allowedMentions: { parse: ['roles', 'users', 'everyone'] } +}) client.commands = new Collection() client.buttons = new Collection()