Cold
SIASapphire - Imagine a framework
•Created by Cold on 5/26/2024 in #sapphire-support
How do I force a user to specify at least one input?
I'm working on a bot, and at the moment the bot errors out if the user does not specify any argument. For reference, this is how my command is structured:
This is how I'm validating whether or not an argument has been specified; but strangely this kicks out an error:
How do I fix this?
6 replies
SIASapphire - Imagine a framework
•Created by Cold on 5/7/2024 in #sapphire-support
Help with slash commands
Hello, I'm trying to work on a project that involves doing some type of user lookup in a database.
My current code looks like this:
Ideally, I want the user to be able to provide either a user @mention, or a user ID, or even a username. What would be the best way to approach this?
7 replies