fix: include voice states in servercreate event
feat: call started system message in dms
This commit is contained in:
@@ -218,6 +218,7 @@ pub trait ToRevoltError<T> {
|
||||
}
|
||||
|
||||
impl<T, E: std::fmt::Debug> ToRevoltError<T> for Result<T, E> {
|
||||
#[track_caller]
|
||||
fn to_internal_error(self) -> Result<T, Error> {
|
||||
self
|
||||
.inspect_err(|e| log::error!("{e:?}"))
|
||||
@@ -233,6 +234,7 @@ impl<T, E: std::fmt::Debug> ToRevoltError<T> for Result<T, E> {
|
||||
}
|
||||
|
||||
impl<T> ToRevoltError<T> for Option<T> {
|
||||
#[track_caller]
|
||||
fn to_internal_error(self) -> Result<T, Error> {
|
||||
self.ok_or_else(|| {
|
||||
let loc = Location::caller();
|
||||
|
||||
Reference in New Issue
Block a user