aboutsummaryrefslogtreecommitdiff
path: root/lib/models/guild/role.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/guild/role.mli')
-rw-r--r--lib/models/guild/role.mli16
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/models/guild/role.mli b/lib/models/guild/role.mli
index b311a60..70474a6 100644
--- a/lib/models/guild/role.mli
+++ b/lib/models/guild/role.mli
@@ -1,24 +1,22 @@
-open Async
-
include module type of Role_t
(** Deletes the role. This is permanent. *)
-val delete : t -> unit Deferred.Or_error.t
+val delete : t -> (unit, string) Lwt_result.t
(** Edits the role to allow mentions. *)
-val allow_mention : t -> t Deferred.Or_error.t
+val allow_mention : t -> (t, string) Lwt_result.t
(** Opposite of {!allow_mention} *)
-val disallow_mention : t -> t Deferred.Or_error.t
+val disallow_mention : t -> (t, string) Lwt_result.t
(** Hoists the role. See {!Role.t.hoist}. *)
-val hoist : t -> t Deferred.Or_error.t
+val hoist : t -> (t, string) Lwt_result.t
(** Opposite of {!hoist}. *)
-val unhoist : t -> t Deferred.Or_error.t
+val unhoist : t -> (t, string) Lwt_result.t
(** Sets the colour of the role. *)
-val set_colour : colour:int -> t -> t Deferred.Or_error.t
+val set_colour : colour:int -> t -> (t, string) Lwt_result.t
(** Sets the name of the role. *)
-val set_name : name:string -> t -> t Deferred.Or_error.t
+val set_name : name:string -> t -> (t, string) Lwt_result.t