Beispiel #1
0
 public ActionerMessageCallback(ExtendedInteractiveService interactive,
                                SocketCommandContext sourceContext,
                                ActionerMessage actioner,
                                ICriterion <SocketReaction> criterion = null)
 {
     ExtendedInteractive = interactive;
     Context             = sourceContext;
     Criterion           = criterion ?? new EmptyCriterion <SocketReaction>();
     _actioner           = actioner;
     if (_actioner.EmoteActions == null || _actioner.EmoteActions.Count == 0)
     {
         throw new ArgumentException("List of actions cannot be empty or null");
     }
 }
Beispiel #2
0
 public ActionerMessageCallback(ExtendedInteractiveService interactive,
                                BaseSocketClient client,
                                ITextChannel textChannel,
                                ActionerMessage actioner,
                                ICriterion <SocketReaction> criterion = null)
 {
     ExtendedInteractive = interactive;
     Context             = null;
     Client      = client;
     TextChannel = textChannel;
     Criterion   = criterion ?? new EmptyCriterion <SocketReaction>();
     _actioner   = actioner;
     if (_actioner.EmoteActions == null || _actioner.EmoteActions.Count == 0)
     {
         throw new ArgumentException("List of actions cannot be empty or null");
     }
 }