Esempio n. 1
0
 /// <summary>
 /// Constructs an error reaction result.
 /// </summary>
 public static RuntimeResult FromError(this IEmote emote, CommandError error, string reason = null)
 {
     return(ReactionResult.FromError(error, reason, emote));
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs an exception reaction result.
 /// </summary>
 public static RuntimeResult FromError(this IEmote emote, Exception ex)
 {
     return(ReactionResult.FromError(ex, emote));
 }
Esempio n. 3
0
 /// <summary>
 /// Constructs a successful reaction result.
 /// </summary>
 public static RuntimeResult FromSuccess(this IEmote emote)
 {
     return(ReactionResult.FromSuccess(emote));
 }