diff options
| author | seth <[email protected]> | 2023-12-15 02:04:28 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-15 16:41:13 -0500 |
| commit | 32d42d5fbab9c74dbe59fbdb94a29112f8766e27 (patch) | |
| tree | 79111090bf837fc97fc5303f1fe93e6a550e6b06 /src/handlers/error.rs | |
| parent | e38a441e37ec1a1dff07cf8bcff3e36a411709aa (diff) | |
commands: improve descriptions
Diffstat (limited to 'src/handlers/error.rs')
| -rw-r--r-- | src/handlers/error.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/handlers/error.rs b/src/handlers/error.rs index bddd4f4..48cb421 100644 --- a/src/handlers/error.rs +++ b/src/handlers/error.rs @@ -19,6 +19,7 @@ pub async fn handle(error: poise::FrameworkError<'_, Data, Report>) { FrameworkError::Command { error, ctx } => { error!("Error in command {}:\n{error}", ctx.command().name); + ctx.send(|c| { c.embed(|e| { e.title("Something went wrong!") |
