AJ
DIAdiscord.js - Imagine an app
•Created by AJ on 10/24/2024 in #djs-questions
Bot tries to reply to a system message.. but what is it?
What would the system message even be? I thought only users get these DMs from Discord 'SYSTEM' or is it bots too? If so, that'd explain it. Also, not really sure this is a discord.js thing, I just don't know where else to ask it.
14 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 5/6/2024 in #djs-questions
data.poll.question[POLL_MEDIA_CONTENT_MISSING]: Poll media must include text, an attachment, an emoj
What am I doing wrong?
Don't mind the would-you-rather question 😅
My code:
5 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 4/17/2024 in #djs-questions
I don't suppose TextChannel polls are available on the API yet are they?
I know it's a new feature which has been rolled out slowly across servers by Discord. I don't suppose this library supports polls yet, do they? If not, do we know when? Thanks.
4 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 2/17/2024 in #djs-questions
channel.createWebhook() returning Request Aborted
I can't seem to understand why this is happening.
I'm trying to create a channel webhooi and it thinks about it for 30s then outputs this error:
73 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 1/8/2024 in #djs-questions
Super high latency to Discord API
6 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 1/2/2024 in #djs-questions
I send messages every 10 seconds
My discord bot sends a rich embedded image to specific server channels every 10 seconds. My bot is pretty large and a lot of people have set this up in their server. I seem to be hitting the discord rate limit a lot and it causes my bot to stop responding on all clusters. I was thinking of switching to using webhooks to send the images instead, but that wouldn't change anything since i'd still be hitting the rate limits.
I cannot really increase the posting time any further, the max I could do is 30, but inevitibly I will stumble across the same problem when we reach the rate limits again.
Can someone confirm if the Discord API rate limit is 1000 api calls per day or something?
What can I potentially do to stop this from happening?
8 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 1/1/2024 in #djs-questions
I keep getting Unknown Interaction errors in my console.
I accidentally closed the last post.
I have lots of people using my bot each day and there seems to always be Unknown Interaction errors when people use commands. I haven't been able to recreate this issue myself and it doesn't even happen 100% of the time (sometimes that code runs fine, and other times it throws that error). I don't really see what the problem is in my code.
Refer to the image, the circled file is what this code is..
The line console is referring to is the:
57 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 1/1/2024 in #djs-questions
I keep getting Unknown Interaction errors in my console
I have lots of people using my bot each day and there seems to always be Unknown Interaction errors when people use commands. I haven't been able to recreate this issue myself and it doesn't even happen 100% of the time (sometimes that code runs fine, and other times it throws that error). I don't really see what the problem is in my code.
Refer to the image, the circled file is what this code is..
The line console is referring to is the:
2 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 7/29/2023 in #djs-questions
Question regarding GuildMemberAdd and GuildMemberUpdate
So my bot currently detects people who donate when they obtain the Premium role in my Discord server. However, I've came to notice (for a while now) that when they join and already have the role appended to them, it doesn't fire GuildMemberUpdate (or at least my bot doesn't detect it). People pledge to us on Patreon and then it gives them the role on Discord, but if they're not in the server, it usually lets them join and also instantly gives them the role. My question is; is this event not fired because it would only fire GuildMemberAdd instead of GuildMemberUpdate?
If so, would I then use GuildMemberAdd to obtain the roles they joined with since GuildMemberUpdate isn't being fired?
5 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 6/18/2023 in #djs-questions
Where does this log come from?
This appears when my client is starting but I am unsure where it is coming from, could it be the unhandled rejection or something?
My client is utilising discord-hybrid-sharding (I know it's not D.js, i'm sorry. The next code is d.js tho):
And then here's the
manager.js
file.
Where is the gateway log coming from because I don't want it to appear?7 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 6/12/2023 in #djs-questions
Need help debugging an error
Can anyone help me debug this please? I've looked all around my code but there's nothing about ID. Any lines regarding
something.id
have been commented out but it still occurs.
14 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 6/9/2023 in #djs-questions
Error: Unsupported MIME type: image/webp
Trying to do image manipulation with peoples avatars but it's throwing this when a static image of someones avatar is being displayed. When someone has a GIF as their avatar, it comes up but it's as a static image instead of actually a GIF.
16 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 5/14/2023 in #djs-questions
Any integrations with the Discord soundboard?
Would be good if we can add a sound to a server, as well as remove a sound through the discord.js module
3 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 1/11/2023 in #djs-questions
Disable button method not working?
NSFW - Hello, i'm using this to edit a command that is used to post an NSFW image to the server. This button allows the user to repeat the command without having to type it out. What i'm looking for, is a way to restrict the button from being pressed for 5 seconds, then for it to enable itself after this 5 seconds is up. Please let me know what i would need to change, or add for this.
16 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 12/29/2022 in #djs-questions
Why does this be not working?
8 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 12/29/2022 in #djs-questions
How does one temporarily disable a Button?
So I have a command that pretty much lets the user press a button, it then does something. However, I don't want them to be able to spam it. Can it just be temporarily greyed out for 5 seconds before allowing them to press it?
3 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 12/26/2022 in #djs-questions
Can you get more interaction info from the ButtonInteraction object?
So basically, what I mean is I'm creating a command that will allow users to retrieve an image based on a selected category, and the slash command is structured like this
/find category:myquery
(category being an .addStringOption). Once it retrieves the image, it will post it, and then create a button saying 'Repeat'. If they click the button, it should repeat the exact same thing and post another one below. Currently, I'm receiving the ButtonInteraction object, but there's only basic information on the command within the object.
See below for the basic info I get on the interaction it originated from:
Doesn't look like there's any way for me to retrieve hoistedOptions.
I need to know what the option was from the original post.
Let me know what you think, thanks.23 replies
DIAdiscord.js - Imagine an app
•Created by AJ on 11/6/2022 in #djs-questions
How does one retrieve the URL of a webhook?
This is the code I have, pretty basic.
From what I can pull from webhook, how can I get the URL so I can store it in a database?
The console displays all of this but without the URL.
I need to store the webhook so I can make a call to it later.
7 replies