#Intents and Partials issue

7 messages · Page 1 of 1 (latest)

hollow citrus
#

My code for initialising the bot is

const bot = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildBans, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildInteractions, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessageReactions, GatewayIntentBits.GuildPresences, GatewayIntentBits.DirectMessages], partials: [Partials.User, Partials.Message, Partials.Channel, Partials.ThreadMember, Partials.GuildMember] });

Yet, I'm getting the error RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined.

Any ideas?

hoary thistle
#

GuildInteractions intent does not exist

hollow citrus
#

Oh god, I just realised it says GuildIntegrations on the docs....

#

Thanks for the help!

hoary thistle
#

which is not the same as interactions fyi

#

you do not need any intent to receive interactions

hollow citrus
#

Yeah, I gathered that lmao