Ninhache
Ninhache
DIAdiscord.js - Imagine an app
Created by Ninhache on 4/19/2024 in #djs-questions
Handling Unmatched Autocomplete Inputs in Slash Commands
I’m working on a Slash Command that allows users to retrieve crafting instructions for Minecraft items with an autocomplete feature. The bot works like this: a user types /howto followed by the item name, such as "boat", and the bot displays how to craft it I'm facing an issue where if the user types too quickly, and the autocomplete doesn’t have time to match the input (e.g., /howto boat entered rapidly), the command execution fails because it receives an "undefined" value instead of "boat" Is there a way to modify the bot so it can default to using the raw input string from the user when the autocomplete fails to provide a match? I want to ensure the command remains valid and executes with the user’s input regardless of the autocomplete's speed
11 replies
DIAdiscord.js - Imagine an app
Created by Ninhache on 4/18/2024 in #djs-questions
Is there a way to see the option we provide to slash command
No description
4 replies
DIAdiscord.js - Imagine an app
Created by Ninhache on 3/27/2024 in #djs-questions
Do we've to register slash command for each server the bot is in ?
I can't make it more clear but I will try : If I'm making a bot that can run on many servers.. Imagine a Bot that helps for a specific topics, for each server he's in, do I've to register the commands for each servers ? Or one deployment is enough ... until I add or edit the command
10 replies
DIAdiscord.js - Imagine an app
Created by Ninhache on 1/10/2023 in #djs-questions
Discord is trolling me !
Hi, I think i'm getting trolled by discord : I'd to reset my bot token, but after i've update it in the code, i'm getting the error that an invalid token has been provided, could someone try to create a new token and try the new one with a bot ? That's really weird, I can provide screens or else but won't be useful, and It was working before in case..
50 replies