Crate descord_macros

Source

Macros§

register_all
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.
register_all_commands
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.
register_all_events
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.
register_all_slash_commands

Attribute Macros§

command
component
event
slash