mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
20 lines
508 B
C#
20 lines
508 B
C#
namespace NadekoBot;
|
|
|
|
public class NadekoInteractionService : INadekoInteractionService, INService
|
|
{
|
|
private readonly DiscordSocketClient _client;
|
|
|
|
public NadekoInteractionService(DiscordSocketClient client)
|
|
{
|
|
_client = client;
|
|
}
|
|
|
|
public NadekoInteraction Create<T>(
|
|
ulong userId,
|
|
SimpleInteraction<T> inter)
|
|
=> new NadekoInteraction(_client,
|
|
userId,
|
|
inter.Button,
|
|
inter.TriggerAsync,
|
|
onlyAuthor: true);
|
|
} |