.crypto command added, and it's kinda smart as a bonus.

This commit is contained in:
Master Kwoth
2017-11-07 06:51:36 +01:00
parent 3d903e028a
commit 3518ebc145
4 changed files with 66 additions and 12 deletions

View File

@ -54,9 +54,12 @@ namespace NadekoBot.Extensions
private static readonly IEmote arrow_left = new Emoji("⬅");
private static readonly IEmote arrow_right = new Emoji("➡");
//todo update this
public static Task SendPaginatedConfirmAsync(this IMessageChannel channel, DiscordSocketClient client, int currentPage, Func<int, EmbedBuilder> pageFunc, int totalElements, int itemsPerPage, bool addPaginatedFooter = true) =>
channel.SendPaginatedConfirmAsync(client, currentPage, (x) => Task.FromResult(pageFunc(x)), totalElements, itemsPerPage, addPaginatedFooter);
public static Task SendPaginatedConfirmAsync(this IMessageChannel channel, DiscordSocketClient client,
int currentPage, Func<int, EmbedBuilder> pageFunc, int totalElements,
int itemsPerPage, bool addPaginatedFooter = true) =>
channel.SendPaginatedConfirmAsync(client, currentPage,
(x) => Task.FromResult(pageFunc(x)), totalElements, itemsPerPage, addPaginatedFooter);
/// <summary>
/// danny kamisama
/// </summary>