/// <summary> /// Constructs the <see cref="SocketUserWaitContext"/> with no prior context. /// </summary> /// <param name="context">The underlying command context.</param> public SocketUserWaitContext(DiscordSocketClient client, SocketUserMessage msg, IWaitContextService waitService, string name, TimeSpan duration) : base(client, msg) { WaitService = waitService; Name = name; Duration = duration; OutputChannel = Channel; OverwriteMessage = $"**{name}:** Was canceled by another operation!"; }
/// <summary> /// Constructs the <see cref="SocketUserWaitContext"/> with an existing <see cref="SocketCommandContext"/>. /// </summary> /// <param name="context">The underlying command context.</param> /// <param name="waitService">The wait service used to manage this context.</param> /// <param name="name">The friendly name of the wait context.</param> /// <param name="duration">The timeout duration of the wait context.</param> public SocketUserWaitContext(SocketCommandContext context, IWaitContextService waitService, string name, TimeSpan duration) : this(context.Client, context.Message, waitService, name, duration) { }