Beispiel #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));
 }
Beispiel #2
0
 /// <summary>
 /// Constructs an exception reaction result.
 /// </summary>
 public static RuntimeResult FromError(this IEmote emote, Exception ex)
 {
     return(ReactionResult.FromError(ex, emote));
 }
Beispiel #3
0
 /// <summary>
 /// Constructs a successful reaction result.
 /// </summary>
 public static RuntimeResult FromSuccess(this IEmote emote)
 {
     return(ReactionResult.FromSuccess(emote));
 }