cs-codex-dist-tests/Tools/BiblioTech/Options/CommandContext.cs

27 lines
705 B
C#

using Discord.WebSocket;
namespace BiblioTech.Options
{
public class CommandContext
{
public CommandContext(SocketSlashCommand command, IReadOnlyCollection<SocketSlashCommandDataOption> options)
{
Command = command;
Options = options;
}
public SocketSlashCommand Command { get; }
public IReadOnlyCollection<SocketSlashCommandDataOption> Options { get; }
public async Task Followup(string message)
{
await Command.FollowupAsync(message, ephemeral: true);
}
public async Task AdminFollowup(string message)
{
await Command.FollowupAsync(message);
}
}
}