Usage: register_all!(client => ["src/file.rs", "src/file2.rs"]);
Where client
is the client object and the array is the list of files to search for events, commands, and slash commands.
If the array is empty, it will recursively search for files in the src
directory.
Usage: register_all_commands!(client => ["src/commands.rs", "src/commands2.rs"]);
Where client
is the client object and the array is the list of files to search for commands.
If the array is empty, it will recursively search for files in the src
directory.
Usage: register_all_events!(client => ["src/events.rs", "src/events2.rs"]);
Where client
is the client object and the array is the list of files to search for events.
If the array is empty, it will recursively search for files in the src
directory.