forked from gorb/backend
feat: implement is_above for roles and reuse same functions from channels!
This commit is contained in:
parent
39d01bb0d0
commit
1aa38631b8
8 changed files with 81 additions and 41 deletions
|
@ -14,7 +14,6 @@ use crate::{
|
|||
#[derive(Deserialize)]
|
||||
struct GuildInfo {
|
||||
name: String,
|
||||
description: Option<String>,
|
||||
}
|
||||
|
||||
pub fn web() -> Scope {
|
||||
|
@ -41,7 +40,6 @@ pub async fn create(
|
|||
let guild = Guild::new(
|
||||
&mut conn,
|
||||
guild_info.name.clone(),
|
||||
guild_info.description.clone(),
|
||||
uuid,
|
||||
)
|
||||
.await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue