aboutsummaryrefslogtreecommitdiff
path: root/lib/models/guild/role.mli
blob: b311a60a4ade8c22877f61b10e7341ab2abbdd1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
open Async

include module type of Role_t

(** Deletes the role. This is permanent. *)
val delete : t -> unit Deferred.Or_error.t

(** Edits the role to allow mentions. *)
val allow_mention : t -> t Deferred.Or_error.t

(** Opposite of {!allow_mention} *)
val disallow_mention : t -> t Deferred.Or_error.t

(** Hoists the role. See {!Role.t.hoist}. *)
val hoist : t -> t Deferred.Or_error.t

(** Opposite of {!hoist}. *)
val unhoist : t -> t Deferred.Or_error.t

(** Sets the colour of the role. *)
val set_colour : colour:int -> t -> t Deferred.Or_error.t

(** Sets the name of the role. *)
val set_name : name:string -> t -> t Deferred.Or_error.t