module DatabaseWarden
Extended Modules
Defined in:
management/database_warden.crInstance Method Summary
- #ban_user(db : DB::Database, id : Int64, db_name : String, reason : String = "") : DB::ExecResult | Nil
- #ban_user(db : DB::Database, name : String, db_name : String) : DB::ExecResult | Nil
- #create_banned_user(db : DB::Database, id : Int64, db_name : String, reason : String = "") : DB::ExecResult | Nil
- #find_user(db : DB::Database, id : Int64, db_name : String) : User | Nil
- #find_user(db : DB::Database, name : String, db_name : String) : User | Nil
- #get_banned_users(db : DB::Database, db_name : String, time : Time) : Array(User) | Nil
- #get_banned_users(db : DB::Database, db_name : String) : Array(User) | Nil
- #list_banned_users(db : DB::Database, db_name : String) : Array(User) | Nil
- #list_ranked_users(db : DB::Database, db_name : String) : Array(User) | Nil
- #set_user_rank(db : DB::Database, id : Int64, rank : Int32, db_name : String) : DB::ExecResult | Nil
- #set_user_rank(db : DB::Database, name : String, rank : Int32, db_name : String) : DB::ExecResult | Nil
- #unban_user(db : DB::Database, id : Int64, db_name : String) : DB::ExecResult | Nil
- #unban_user(db : DB::Database, name : String, db_name : String) : DB::ExecResult | Nil
Instance Method Detail
def ban_user(db : DB::Database, id : Int64, db_name : String, reason : String = "") : DB::ExecResult | Nil
#
def ban_user(db : DB::Database, name : String, db_name : String) : DB::ExecResult | Nil
#
def create_banned_user(db : DB::Database, id : Int64, db_name : String, reason : String = "") : DB::ExecResult | Nil
#
def set_user_rank(db : DB::Database, id : Int64, rank : Int32, db_name : String) : DB::ExecResult | Nil
#
def set_user_rank(db : DB::Database, name : String, rank : Int32, db_name : String) : DB::ExecResult | Nil
#
def unban_user(db : DB::Database, id : Int64, db_name : String) : DB::ExecResult | Nil
#
def unban_user(db : DB::Database, name : String, db_name : String) : DB::ExecResult | Nil
#