示例#1
0
        public InteractiveService(BaseSocketClient discord, InteractiveServiceConfig config = null)
        {
            Discord = discord;
            Discord.ReactionAdded += HandleReactionAsync;

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

            _callbacks = new Dictionary <ulong, IReactionCallback>();
        }
示例#2
0
 public InteractiveService(DiscordShardedClient discord, InteractiveServiceConfig config = null)
     : this((BaseSocketClient)discord, config)
 {
 }