lupus
lupus
DIAdiscord.js - Imagine an app
Created by Cloud on 9/20/2024 in #djs-questions
which perms do i need
Hmm, if you give the bot admin on the other server, does it start working?
40 replies
DIAdiscord.js - Imagine an app
Created by Cloud on 9/20/2024 in #djs-questions
which perms do i need
Instead of checking whether communicationDisabledUntil is a false value. That function explicitly returns true/false without potentially guessing.
40 replies
DIAdiscord.js - Imagine an app
Created by Cloud on 9/20/2024 in #djs-questions
which perms do i need
Yeah, that makes sense in some way, but I'm not sure what perm guildmemberupdate is linked to.
40 replies
DIAdiscord.js - Imagine an app
Created by Cloud on 9/20/2024 in #djs-questions
which perms do i need
Are there any other notable differences?
40 replies
DIAdiscord.js - Imagine an app
Created by Cloud on 9/20/2024 in #djs-questions
which perms do i need
Are you actually registering the event somewhere?
40 replies
DIAdiscord.js - Imagine an app
Created by Cloud on 9/20/2024 in #djs-questions
which perms do i need
You'd need Guilds/GuildMembers intent, but we can't really see your client definition.
40 replies
DIAdiscord.js - Imagine an app
Created by Liam on 9/9/2024 in #djs-questions
Message collector not working
Just to make sure, try to create a messageCreate event handler and see if that catches the message.
9 replies
DIAdiscord.js - Imagine an app
Created by Nassim on 8/27/2024 in #djs-voice
running multiple bots with one script
And you're sure your connection can handle that? You could try logging debug/warn events.
14 replies
DIAdiscord.js - Imagine an app
Created by Nassim on 8/27/2024 in #djs-voice
running multiple bots with one script
Alright, the process doesn't crash but the bots go offline, right?
14 replies
DIAdiscord.js - Imagine an app
Created by Nassim on 8/27/2024 in #djs-voice
running multiple bots with one script
Uuh, Task Manager? I'm just using that on Windows, I haven't heard of any "special" other took for it.
14 replies
DIAdiscord.js - Imagine an app
Created by Nassim on 8/27/2024 in #djs-voice
running multiple bots with one script
I mean, both could be an issue. Try monitoring CPU/Ram usage or reading system logs (especially if you're on Linux) to find out about potential OOM kills. It could also just be Discord killing some bots due to ratelimiting or abuse prevention.
14 replies
DIAdiscord.js - Imagine an app
Created by Bass on 4/28/2024 in #djs-questions
Confirmation and error messages problem:
You’re welcome
5 replies
DIAdiscord.js - Imagine an app
Created by Bass on 4/28/2024 in #djs-questions
Confirmation and error messages problem:
So I can see that you want to send a message with the added users in the end. .forEach does not support async functions. You could try looping through users with a for...of loop and then add the users that way. However, you'll have to add an await to member.roles.add as well as probably deferring the reply beforehand. You could then create a new array with failed users and display them in the confirmation message as well.
5 replies
DIAdiscord.js - Imagine an app
Created by 68 on 4/28/2024 in #djs-questions
Bot cannot play music
As Qjuh said, there won't be any support for ToS violations even though it might be possible.
16 replies
DIAdiscord.js - Imagine an app
Created by 68 on 4/28/2024 in #djs-questions
Bot cannot play music
No, most likely not, but I can't help you in this server in because of the rules.
16 replies
DIAdiscord.js - Imagine an app
Created by 68 on 4/28/2024 in #djs-questions
Bot cannot play music
Playing music from YouTube is not allowed as per YouTube's terms.
16 replies
DIAdiscord.js - Imagine an app
Created by Void on 4/15/2024 in #djs-questions
embed description
So what does embedDescription log as?
6 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 4/14/2024 in #djs-questions
Is it possible to keep message components active in a loop? How do big bots handle timed out buttons
Well, having two interaction listeners is still alright, but you will use more memory and it's not good if you have listeners all over the place, one is usually enough. At some point it'll even warn you about it, see this page: https://discordjs.guide/popular-topics/errors.html#maxlistenersexceededwarning-possible-eventemitter-memory-leak-detected
9 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 4/14/2024 in #djs-questions
Is it possible to keep message components active in a loop? How do big bots handle timed out buttons
Yes.
9 replies
DIAdiscord.js - Imagine an app
Created by Swyftey on 4/14/2024 in #djs-questions
Is it possible to keep message components active in a loop? How do big bots handle timed out buttons
If you want buttons to be available permanently, you shouldn't use a collector, but instead just listen for the custom ID.
9 replies