You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: message.rs
    path of file: ./repos/backend/crates/quark/src/impl/generic/channels
    
    the code of the file until where you have to start completion: use std::collections::HashSet;

use revolt_presence::filter_online;
use serde_json::json;
use ulid::Ulid;
use validator::Validate;

use crate::{
    events::cl
    
fn throw_permission(permissions: u64, permission: Permission) -> Result<()> {
    if (permission as u64) & permissions == (permission as u64) {
        Ok(())
    } else {
        Err(Error::MissingPermission { permission })
    }
}