Tim
Tim
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
Thank you, it took me a while to understand what all changes needed to be followed. The full list of V13 V14 events is a bit hard to parse
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
I think I managed to get it work. Had to replace message with messagecreate and I think that was all?
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
I didnt write the repo so still picking up all NodeJs and Discord.js stuff at once
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
Yeah reading.
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
I just committed the code I was running locally latest. That's just the code I already shared above
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
Sorry I'm not well versed in JS, I usually use python for things, so just learning as I go
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
I am basically updating to v14 so it can use forum posts and threads again
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
I cant tell why, do I need to specify a separate intent for every little thing? Send Messages, MessageContent, change Status etc?
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
For example
const { Client, Collection, GatewayIntentBits, Intents} = require('discord.js');
const bot = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});/**/
const PREFIX = "-";
const { Client, Collection, GatewayIntentBits, Intents} = require('discord.js');
const bot = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMembers,
],
});/**/
const PREFIX = "-";
I use this code, and the bot starts without any errors. And then does not change its own status or reply to -help anymore
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
Let me try one of the codes and show
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
I've tried reading both and still don't get it unfortunately. Something about the bot just stops working even if I give it some intents
25 replies
DIAdiscord.js - Imagine an app
Created by Tim on 3/28/2024 in #djs-questions
Using intents in V14
thetis@thetis:~/coding/SI_Card_Bot$ npm list discord.js
si_bot@2.8.2 /home/thetis/coding/SI_Card_Bot
`-- discord.js@14.14.1

thetis@thetis:~/coding/SI_Card_Bot$ node -v
v20.12.0
thetis@thetis:~/coding/SI_Card_Bot$
thetis@thetis:~/coding/SI_Card_Bot$ npm list discord.js
si_bot@2.8.2 /home/thetis/coding/SI_Card_Bot
`-- discord.js@14.14.1

thetis@thetis:~/coding/SI_Card_Bot$ node -v
v20.12.0
thetis@thetis:~/coding/SI_Card_Bot$
25 replies