OIRNOIR
OIRNOIR
DIAdiscord.js - Imagine an app
Created by OIRNOIR on 12/14/2023 in #djs-questions
Is there a good way to check whether a user is eligible to run a command?
I want to check whether a user is eligible to run a command via Discord's integration command permissions. Is there a viable way to do that?
35 replies
DIAdiscord.js - Imagine an app
Created by OIRNOIR on 12/10/2023 in #djs-questions
What is the best way to get the subcommand from the command?
I have a command that uses subcommands. I know that there is an interaction.options._subcommand private property that returns exactly what I need. Is there any other recommended public property that can give me the name of the subcommand used? Thanks!
2 replies
DIAdiscord.js - Imagine an app
Created by OIRNOIR on 8/20/2023 in #djs-questions
Get formatted error from CombinedPropertyError
Is there a way to get the pretty formated text from a CombinedPropertyError (or the errors that come when you make, for example, an EmbedBuilder incorrectly) other than logging the error? I want to access the string that is logged from within my js program for a custom logging solution.
3 replies
DIAdiscord.js - Imagine an app
Created by OIRNOIR on 4/14/2023 in #djs-questions
Is there a way to calculate the total character count of all fields of a message before it is sent
I want to be able to calculate the character count of a message (Most helpful if it was caluculatable for individual embeds) so I don't get apierrors
5 replies
DIAdiscord.js - Imagine an app
Created by OIRNOIR on 3/17/2023 in #djs-questions
Is there a way I can allow someone to upload a file to my bot outside of a slash command option?
I'm trying to make an interactive setup of something that involves uploading a file. Previously, it has been done through a file upload option in a slash command, but I was wondering if there was any way to do so via a component or a modal or something similar. If not, how can I suggest this feature to Discord? It would be extremely useful.
22 replies