Bot messages work
This commit is contained in:
@@ -81,6 +81,12 @@ impl From<serde_json::Error> for ServiceError {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<serenity::Error> for ServiceError {
|
||||
fn from(error: serenity::Error) -> ServiceError {
|
||||
ServiceError::new(500, format!("Unknown serenity error: {}", error))
|
||||
}
|
||||
}
|
||||
|
||||
impl ResponseError for ServiceError {
|
||||
fn error_response(&self) -> HttpResponse {
|
||||
let status_code = match StatusCode::from_u16(self.status) {
|
||||
|
||||
Reference in New Issue
Block a user