Types

BanList

pub struct BanList {
    pub ban_count: u64,
    pub page_count: u64,
    pub per_page: u64,
    pub page: u64,
    pub on_page: u64,
    pub next_page: u64,
    pub previous_page: Option<u64>,
    pub data: Vec<BanData>
}

BanData

pub struct BanData {
    pub id: String,
    pub name: String,
    pub discriminator: String,
    pub moderator_id: String,
    pub reason: String,
    pub proof: String,
    pub is_ban_active: bool,
    pub can_be_appealed: bool,
    pub timestamp: String,
    pub appeal_reason: Option<String>,
    pub appeal_date: Option<String>
}

BanAddition

pub struct BanAddition {
    pub user_id: u64,
    pub reason: String,
    pub proof: String,
    pub moderator: Option<u64>,
    pub user_name: Option<String>,
    pub user_discriminator: Option<u16>,
    pub appeal_possible: Option<bool>
}

BanAdditionResponse

pub struct BanAdditionResponse {
    pub success: bool
}

BanDeletionResponse

pub struct BanDeletionResponse {
    pub done: bool
}

BanCheckResponse

pub struct BanCheckResponse {
    pub is_banned: bool
}

BanInfoResponse

pub struct BanInfoResponse {
    pub id: String,
    pub name: String,
    pub discriminator: String,
    pub moderator_id: String,
    pub reason: String,
    pub proof: String,
    pub is_ban_active: bool,
    pub can_be_appealed: bool,
    pub timestamp: String,
    pub appeal_reason: Option<String>,
    pub appeal_date: Option<String>,
    pub requested_by: String,
    pub exists: bool,
}

Last updated