Files
archived-discord-bot/CompatBot/Commands/Ird.cs

27 lines
868 B
C#

using CompatBot.Utils.ResultFormatters;
using IrdLibraryClient;
namespace CompatBot.Commands;
/*
internal sealed class Ird
{
private static readonly IrdClient Client = new();
[Command("ird"), TriggersTyping]
[Description("Searches IRD Library for the matching .ird files")]
public async Task Search(CommandContext ctx, [RemainingText, Description("Product code or game title to look up")] string query)
{
if (string.IsNullOrEmpty(query))
{
await ctx.ReactWithAsync(Config.Reactions.Failure, "Can't search for nothing, boss").ConfigureAwait(false);
return;
}
var result = await Client.SearchAsync(query, Config.Cts.Token).ConfigureAwait(false);
var embed = result.AsEmbed();
await ctx.Channel.SendMessageAsync(embed: embed).ConfigureAwait(false);
}
}
*/