consts: store colors as hex codes in struct
This commit is contained in:
parent
1ff95de3bf
commit
a3014f2694
6 changed files with 52 additions and 28 deletions
|
@ -1,5 +1,5 @@
|
|||
use crate::consts;
|
||||
use crate::Data;
|
||||
use crate::{consts::Colors, Data};
|
||||
|
||||
use std::fmt::Write;
|
||||
|
||||
use eyre::Report;
|
||||
|
@ -34,7 +34,7 @@ pub async fn handle(error: FrameworkError<'_, Data, Report>) {
|
|||
.title("Something went wrong!")
|
||||
.description("oopsie")
|
||||
.timestamp(Timestamp::now())
|
||||
.color(consts::colors()["red"]);
|
||||
.color(Colors::RED);
|
||||
|
||||
let reply = CreateReply::default().embed(embed);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue