public InteractiveService(BaseSocketClient discord, InteractiveServiceConfig config = null) { Discord = discord; Discord.ReactionAdded += HandleReactionAsync; config = config ?? new InteractiveServiceConfig(); _defaultTimeout = config.DefaultTimeout; _callbacks = new Dictionary <ulong, IReactionCallback>(); }
protected BaseInteractiveService(BaseSocketClient client, InteractiveServiceConfig config = null) { Discord = client; Discord.ReactionAdded += HandleReactionAsync; Discord.InteractionCreated += HandleInteractionAsync; Discord.MessageDeleted += HandleMessageDeleteAsync; config ??= new InteractiveServiceConfig(); DefaultTimeout = config.DefaultTimeout; }
public InteractiveService(DiscordShardedClient discord, InteractiveServiceConfig config = null) : this((BaseSocketClient)discord, config) { }
public InteractiveService(BaseSocketClient discord, InteractiveServiceConfig config = null) : base(discord, config) { _callbacks = new(); _interactionCallbacks = new(); }