Vigintillion
Vigintillion
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
weird ts doesnt give error for that
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
that was the issue
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Yup
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
thats prob the issue
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
yeah I'm still passing strings as intents
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Here you go:
private getInvite(channel: TextChannel, userId: string) {
const collector = channel.createMessageCollector({
filter: (msg) => msg.author.id === userId,
idle: 30*1000
});
collector.on("collect", async (message) => {
console.log(message)
message.delete();
collector.stop();
....
});
}
private getInvite(channel: TextChannel, userId: string) {
const collector = channel.createMessageCollector({
filter: (msg) => msg.author.id === userId,
idle: 30*1000
});
collector.on("collect", async (message) => {
console.log(message)
message.delete();
collector.stop();
....
});
}
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Yeah I was on phone sec
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Bot is also approved for the message intent
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Yes
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
And it is infeed the channel that it’s supposed to collect in
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
cmd.channel is a valid channel
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Am on phone rn so sorry for bad formatting const collector = cmd.channel.createMessageCollector({ filter: (msg) => msg.author.id === cmd.member.id, idle: 30*1000 }); collector.on((collected) => console.log(collected));
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 1/12/2024 in #djs-questions
message collector not working?
Cant find anything about message collector though
20 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 7/6/2023 in #djs-questions
Modals
thank you
7 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 7/6/2023 in #djs-questions
Modals
ah
7 replies
DIAdiscord.js - Imagine a bot
Created by Dãrķ Søŭł on 7/4/2023 in #djs-questions
Demote Command doesn't work.
Make sure to check that the bot’s role is above the roles you’re adding
37 replies
DIAdiscord.js - Imagine a bot
Created by Dãrķ Søŭł on 7/4/2023 in #djs-questions
Demote Command doesn't work.
The bot doesnt have permission
37 replies
DIAdiscord.js - Imagine a bot
Created by Dãrķ Søŭł on 7/4/2023 in #djs-questions
Demote Command doesn't work.
Add a try catch to it or a .catch() to check if missing permissions or add an if statement at the start to check for permission
37 replies
DIAdiscord.js - Imagine a bot
Created by Vigintillion on 7/4/2023 in #djs-questions
Permission for disableCommunicationUntil
Thank you
3 replies