Maxi130
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 1/15/2024 in #djs-questions
How do I get premium_type of a user or is there no way in discord.js?
I looked in the docs, but couldn't find anything.
The user is not partial and fully fetched.
I tested it with curl and it is accessible without 0Auth2
https://discord.com/developers/docs/resources/user#user-object-user-structure
https://discord.com/developers/docs/resources/user#user-object-premium-types
5 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 1/15/2024 in #djs-questions
message.mentions.users being incomplete
When using message.mentions.users user who are not in the guild/cached by the bot, aren't in the collection.
I pinged them using <@id> and <@!id> instead of using discords built in selector, if that matters. The pings are shown correctly on my client.
10 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 1/2/2024 in #djs-questions
message.channel.totalMesssgeSent returning undefined
Message and message.channel are the value that they are supposed to be.
I have the MessageContent, Guilds and MessageCreate intents.
I do not have any partials,
9 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/9/2023 in #djs-questions
How do I properly use a built in emoji?
8 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 9/16/2023 in #djs-questions
How do I fire an event once a rate limit has been reached?
I'm aware that discord.js handles right limits, but I want to be sure that it doesn't change the channel topic, because of a rate limit.
2 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 4/22/2023 in #djs-questions
data.choices[0][MODEL_TYPE_CONVERT]: Only dictionaries may be used in a ModelType
That is what I am responding with:
What am I doing wrong?
6 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 2/11/2023 in #djs-questions
[Solved] guildMemberUpdate event only firing after second nickname change
I'm trying to detect when someone changes their nickname.
Output:
17 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 8/27/2022 in #djs-questions
Convert discord.js collection to json with keeping keys and values
I already tried Collection.toJSON() but it removes the key name and converts it into an array.
Code:
Output:
15 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 8/6/2022 in #djs-questions
Error WebSocket was closed before the connection was established
Version: ^13.8.1 (I will try upgrading but I don't think this is the issue)
6 replies