mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
fix: disable presence intent on public bots
This commit is contained in:
parent
e8bf45a9a4
commit
c7d9bbff53
@ -17,14 +17,16 @@ module.exports = class Client extends FrameworkClient {
|
|||||||
constructor(config, log) {
|
constructor(config, log) {
|
||||||
super({
|
super({
|
||||||
intents: [
|
intents: [
|
||||||
GatewayIntentBits.DirectMessages,
|
...[
|
||||||
GatewayIntentBits.DirectMessageReactions,
|
GatewayIntentBits.DirectMessages,
|
||||||
GatewayIntentBits.DirectMessageTyping,
|
GatewayIntentBits.DirectMessageReactions,
|
||||||
GatewayIntentBits.MessageContent,
|
GatewayIntentBits.DirectMessageTyping,
|
||||||
GatewayIntentBits.Guilds,
|
GatewayIntentBits.MessageContent,
|
||||||
GatewayIntentBits.GuildMembers,
|
GatewayIntentBits.Guilds,
|
||||||
GatewayIntentBits.GuildMessages,
|
GatewayIntentBits.GuildMembers,
|
||||||
GatewayIntentBits.GuildPresences,
|
GatewayIntentBits.GuildMessages,
|
||||||
|
],
|
||||||
|
...(process.env.PUBLIC_BOT !== 'true' ? [GatewayIntentBits.GuildPresences] : []),
|
||||||
],
|
],
|
||||||
partials: [
|
partials: [
|
||||||
Partials.Channel,
|
Partials.Channel,
|
||||||
|
Loading…
Reference in New Issue
Block a user