mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
15 lines
471 B
C#
15 lines
471 B
C#
namespace NadekoBot;
|
|
|
|
/// <summary>
|
|
/// Interaction which only the author can use
|
|
/// </summary>
|
|
public abstract class NadekoButtonOwnInteraction : NadekoButtonInteraction
|
|
{
|
|
protected readonly ulong _authorId;
|
|
|
|
protected NadekoButtonOwnInteraction(DiscordSocketClient client, ulong authorId) : base(client)
|
|
=> _authorId = authorId;
|
|
|
|
protected override ValueTask<bool> Validate(SocketMessageComponent smc)
|
|
=> new(smc.User.Id == _authorId);
|
|
} |