2023-10-24 15:25:45 +02:00
|
|
|
|
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; }
|
2023-10-25 10:54:26 +02:00
|
|
|
|
|
|
|
|
|
public async Task Followup(string message)
|
|
|
|
|
{
|
|
|
|
|
await Command.FollowupAsync(message, ephemeral: true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public async Task AdminFollowup(string message)
|
|
|
|
|
{
|
|
|
|
|
await Command.FollowupAsync(message);
|
|
|
|
|
}
|
2023-10-24 15:25:45 +02:00
|
|
|
|
}
|
|
|
|
|
}
|