zevnda
zevnda
DIdiscord.js - Imagine ❄
Created by LuisTTV on 12/12/2024 in #djs-questions
Commands not working for only SOME users
Glad you got it sorted
10 replies
DIdiscord.js - Imagine ❄
Created by LuisTTV on 12/12/2024 in #djs-questions
Commands not working for only SOME users
Considering it's just one server, I'd say it's their permissions. Do any of the users who can't use the commands have higher roles with slash commands disabled. Or do any of the channels have the slash commands perm disabled?
10 replies
DIdiscord.js - Imagine ❄
Created by LuisTTV on 12/12/2024 in #djs-questions
Commands not working for only SOME users
What overrides are you using for the specific commands?
10 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
That's fair. If it works for you that's all that really matters. Was just curious 🙂 best of luck
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
Nice!
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
It happens. I am curious though, why such a roundabout way of handling message options like that anyway?
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
Your messageOptions isn't handling files
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
Alright, let's see this
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
Right sorry, I meant on the actual buffer returned from the generate function
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
If that doesn't work, can we see globalClient.embedHandler.send()
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
Hmm, I doubt it'll be the issue as I think they're processed at the same time anyway, but can you try putting files before embeds? Also try logging Buffer.isBuffer(attachment) .. though the buffer is clearly valid
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
In your generate function have you tried logging captcha and svguffer to make sure they're correct?
48 replies
DIdiscord.js - Imagine ❄
Created by Kiɾʌ Kenjiɾø on 12/9/2024 in #djs-questions
Attaching PNG buffers directly to embed.
Can we see the generate function?
48 replies
DIdiscord.js - Imagine ❄
Created by oxi on 12/7/2024 in #djs-questions
Message sending multiple times
I think the likely issue is multiple instances, or your event handler is triggering the event multiple time
11 replies
DIdiscord.js - Imagine ❄
Created by oxi on 12/7/2024 in #djs-questions
Message sending multiple times
And I get that it's only for 1 user, but if multiple users joined at the same time it might cause duplicates if any of those async operations didn't finish before the event was fired again, this is unlikely but possible
11 replies
DIdiscord.js - Imagine ❄
Created by oxi on 12/7/2024 in #djs-questions
Message sending multiple times
Are you unknowingly running multiple instances of your bot? Are you listening to the guildMemberAdd event anywhere else?
11 replies
DIdiscord.js - Imagine ❄
Created by oxi on 12/7/2024 in #djs-questions
Message sending multiple times
Plus you're just making redundant API calls at that point
11 replies
DIdiscord.js - Imagine ❄
Created by oxi on 12/7/2024 in #djs-questions
Message sending multiple times
Why check if a message exists with the member's ID if you're already referencing a set? Can't say for sure, but if either one of those async methods takes a while to execute, and other people join before they complete, that could lead to duplicate messages being sent. You're better off just referencing the set alone
11 replies