1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Add emotigram support; close #115

This commit is contained in:
NG (Graham)
2026-07-09 21:05:32 -04:00
parent 9aaf1b5b5f
commit bab455dc00
6 changed files with 132 additions and 9 deletions

View File

@@ -117,6 +117,8 @@ pub trait User<C>: ChatUser + SocialUser + SocialUserC<C> + LobbyUser + Multipla
async fn apply_purchase(&self, action: &crate::persist::config::ShopAction) -> Result<PurchaseResult, polariton_server::operations::SimpleOpError>;
async fn currency_debit(&self, ty: CurrencyType, to_sub: u64) -> Result<(), polariton_server::operations::SimpleOpError>;
async fn mark_code_redeemed(&self, code: String) -> Result<bool, polariton_server::operations::SimpleOpError>;
async fn get_emotes(&self) -> Result<Vec<String>, polariton_server::operations::SimpleOpError>;
async fn set_emotes(&self, emotes: &[String]) -> Result<(), polariton_server::operations::SimpleOpError>;
}
#[async_trait::async_trait]