Ben
Ben
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
thank you so much
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
ive been sat here for 2 hours with this lol T_T
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
yep... you are correct, ive deleted that partial and collectors are now working
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
code is saved and console is logging collector started and collected ended, but nothing in between
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
command handler is using the message partal;
// Command handler
client.on('messageCreate', message => {
if (!message.content.startsWith(cfg.prefix) || message.author.bot) return;

const args = message.content.slice(cfg.prefix.length).trim().split(/ +/);
const commandName = args.shift().toLowerCase();

const command = commands.get(commandName);
if (!command) return;

command.execute(message, args);
});
// Command handler
client.on('messageCreate', message => {
if (!message.content.startsWith(cfg.prefix) || message.author.bot) return;

const args = message.content.slice(cfg.prefix.length).trim().split(/ +/);
const commandName = args.shift().toLowerCase();

const command = commands.get(commandName);
if (!command) return;

command.execute(message, args);
});
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
No description
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
the collector starts and ends without issue, but doesnt actually collect
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
hmm, im confused to why this isnt working then
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
but im not passing client anywhere in the file... guessing thats my issue ?
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
Hmm, still nothing, even with the intents and partials update 🤔 ive moved them over to my veriy.js also..
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
],
partials: [Partials.Channel, Partials.Message, Partials.User, Partials.GuildMember, Partials.Reaction],
});
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent,
GatewayIntentBits.DirectMessages,
],
partials: [Partials.Channel, Partials.Message, Partials.User, Partials.GuildMember, Partials.Reaction],
});
So im assuming this should now work
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
😢 thank you
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent,
],
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent,
],
30 replies
DIAdiscord.js - Imagine an app
Created by Ben on 9/28/2024 in #djs-questions
Message Collector help
30 replies