chore: refactor message sending (#172)
* refactor send message * refactor resend * fix * refactor * clean up
This commit is contained in:
@@ -14,8 +14,8 @@ impl Message {
|
||||
Self::User(user.into())
|
||||
}
|
||||
|
||||
pub fn warning(content: String) -> Self {
|
||||
Self::Warning(content, Timestamp::now())
|
||||
pub fn warning(content: impl Into<String>) -> Self {
|
||||
Self::Warning(content.into(), Timestamp::now())
|
||||
}
|
||||
|
||||
pub fn system() -> Self {
|
||||
|
||||
Reference in New Issue
Block a user