IAmBatman
DIAdiscord.js - Imagine an app
•Created by IAmBatman on 10/1/2024 in #djs-questions
How to mention a guild
Is there a way to mention a guild like you would mention a user or a channel etc.? For example: #general
4 replies
DIAdiscord.js - Imagine an app
•Created by IAmBatman on 5/22/2024 in #djs-questions
Looking for a good way to organize subcommand groups
4 replies
DIAdiscord.js - Imagine an app
•Created by IAmBatman on 5/1/2024 in #djs-questions
Relative timestamp in embed footer
I want to put a relative timestamp in an embed footer. setTimestamp() doesn't accept strings, so I cannot pass the relative timestamp as an argument. When I use the relative timestamp in setFooter() like this
I get this
I know it would work if the timestamp was in a description or a field value, I just want to put it in the footer so it can look a little better. Is it possible to achieve this?
7 replies
DIAdiscord.js - Imagine an app
•Created by IAmBatman on 4/13/2024 in #djs-questions
Cannot register commands globally
I am trying to register my slash commands to every server that my bot is in, but for some reason I can't. This code worked before it suddenly decided not working. I don't get any errors, it just halts the execution like it is still waiting for the response. My bot is in only two servers at the moment, I have tried kicking it from both of them and inviting back with application.commands and bot permissions. I have also tried using client.application.commands.set() instead of rest.put().
Here is a part of my code:
Also, if there is a better way to clear the application commands from every guild before adding the new ones, please let me know.
9 replies
DIAdiscord.js - Imagine an app
•Created by IAmBatman on 3/29/2024 in #djs-questions
Aligning field value text to center in an embed
2 replies