Guide
Use the RevoltSharp built-in command handler to use it for bots
You can use the build-in command handler to parse and run commands from messages!
1. Install the RevoltSharp.Commands package from NuGet
Download from NuGet or use the Visual Studio package manager.

2. Create the Command Handler class
3. Change your prefix
Update the CommandHandler.Prefix property to change the prefix.
4. Update your Program.cs file and add the command handler
await Client.StartAsync();
CommandHandler CommandHandler = new CommandHandler(Client);
CommandHandler.LoadCommands();
5. Create a command module file
Extra
You can use command attributes to make life easier!
// Can run command as test or othertest \\
[Command("test"), Alias("othertest")]
// You can put this on commands or the ModuleBase to lock commands to bot owner \\
// Set bot owners in ClientConfig when creating a RevoltClient \\
[RequireOwner]
Last updated