feat: implement channel invites, perms, group create, members fetch

chore: when you accidentally run fmt
This commit is contained in:
Paul Makles
2022-02-04 21:50:30 +00:00
parent b58755dbeb
commit 88f811761b
59 changed files with 536 additions and 195 deletions

View File

@@ -11,7 +11,7 @@ use validator::Validate;
#[derive(Serialize, Deserialize)]
enum ChannelType {
Text,
Voice
Voice,
}
impl Default for ChannelType {
@@ -33,6 +33,9 @@ pub struct Data {
}
#[post("/<target>/channels", data = "<info>")]
pub async fn req(/*_idempotency: IdempotencyKey, user: User, target: Ref,*/ target: String, info: Json<Data>) -> Result<Value> {
pub async fn req(
/*_idempotency: IdempotencyKey, user: User, target: Ref,*/ target: String,
info: Json<Data>,
) -> Result<Value> {
todo!()
}