Ejemplo n.º 1
0
        public InteractiveService(BaseSocketClient discord, InteractiveServiceConfig config = null)
        {
            Discord = discord;
            Discord.ReactionAdded += HandleReactionAsync;

            config          = config ?? new InteractiveServiceConfig();
            _defaultTimeout = config.DefaultTimeout;

            _callbacks = new Dictionary <ulong, IReactionCallback>();
        }
Ejemplo n.º 2
0
        protected BaseInteractiveService(BaseSocketClient client, InteractiveServiceConfig config = null)
        {
            Discord = client;

            Discord.ReactionAdded      += HandleReactionAsync;
            Discord.InteractionCreated += HandleInteractionAsync;
            Discord.MessageDeleted     += HandleMessageDeleteAsync;

            config ??= new InteractiveServiceConfig();
            DefaultTimeout = config.DefaultTimeout;
        }
Ejemplo n.º 3
0
 public InteractiveService(DiscordShardedClient discord, InteractiveServiceConfig config = null)
     : this((BaseSocketClient)discord, config)
 {
 }
Ejemplo n.º 4
0
 public InteractiveService(BaseSocketClient discord, InteractiveServiceConfig config = null)
     : base(discord, config)
 {
     _callbacks            = new();
     _interactionCallbacks = new();
 }