mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
// namespace NadekoBot;
|
|
//
|
|
// public class NadekoButtonInteractionArray : NadekoButtonInteraction
|
|
// {
|
|
// private readonly ButtonBuilder[] _bbs;
|
|
// private readonly NadekoButtonInteraction[] _inters;
|
|
//
|
|
// public NadekoButtonInteractionArray(params NadekoButtonInteraction[] inters)
|
|
// : base(inters[0].Client)
|
|
// {
|
|
// _inters = inters;
|
|
// _bbs = inters.Map(x => x.GetButtonBuilder());
|
|
// }
|
|
//
|
|
// protected override string Name
|
|
// => throw new NotSupportedException();
|
|
// protected override IEmote Emote
|
|
// => throw new NotSupportedException();
|
|
//
|
|
// protected override ValueTask<bool> Validate(SocketMessageComponent smc)
|
|
// => new(true);
|
|
//
|
|
// public override Task ExecuteOnActionAsync(SocketMessageComponent smc)
|
|
// {
|
|
// for (var i = 0; i < _bbs.Length; i++)
|
|
// {
|
|
// if (_bbs[i].CustomId == smc.Data.CustomId)
|
|
// return _inters[i].ExecuteOnActionAsync(smc);
|
|
// }
|
|
//
|
|
// return Task.CompletedTask;
|
|
// }
|
|
//
|
|
// public override MessageComponent CreateComponent()
|
|
// {
|
|
// var comp = new ComponentBuilder();
|
|
//
|
|
// foreach (var bb in _bbs)
|
|
// comp.WithButton(bb);
|
|
//
|
|
// return comp.Build();
|
|
// }
|
|
// } |