#OpenAI question

1 messages · Page 1 of 1 (latest)

woven geyser
#
const client = new Client({ intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMessages,
    GatewayIntentBits.MessageContent ] });```
#

Is there a better way to write this?

eager pond
#

you did choose the best way

woven geyser
#

How would I add direct messages

eager pond
#

same way as you added GuildMessages or MessageContent?

woven geyser
#

GatewayIntentBits.DirectMessages

eager pond
#

yes

woven geyser
#

Awesome, thx

eager pond
#

why "OpenAI question" ?

woven geyser
#

It's a gpt chatbot

eager pond
#

I mean your question is related to the discord.js library

#

so.. a discord.js question

woven geyser
#

Yes, just disnt know if OpenAI integration would change anything