This commit is contained in:
seth 2024-03-31 17:26:16 -04:00
parent 9dfc3b21ff
commit 0b0779f8b7
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
32 changed files with 137 additions and 181 deletions

View file

@ -1,8 +1,7 @@
use crate::{consts::Colors, Data};
use crate::{consts::Colors, Data, Error};
use std::fmt::Write;
use eyre::Report;
use log::error;
use poise::serenity_prelude::{CreateEmbed, Timestamp};
use poise::{CreateReply, FrameworkError};
@ -16,7 +15,7 @@ macro_rules! writelne {
}
}
pub async fn handle(error: FrameworkError<'_, Data, Report>) {
pub async fn handle(error: FrameworkError<'_, Data, Error>) {
match error {
FrameworkError::Setup {
error, framework, ..
@ -34,7 +33,7 @@ pub async fn handle(error: FrameworkError<'_, Data, Report>) {
.title("Something went wrong!")
.description("oopsie")
.timestamp(Timestamp::now())
.color(Colors::RED);
.color(Colors::Red);
let reply = CreateReply::default().embed(embed);