Added full list of supported languages for .trans command, improved .translangs output

This commit is contained in:
Kwoth
2023-01-20 05:28:13 +01:00
parent 710f4f2ed8
commit e52bf798cf
4 changed files with 174 additions and 155 deletions

View File

@@ -151,27 +151,6 @@ public static class MessageChannelExtensions
string? footer = null)
=> ch.SendAsync(eb, MessageType.Error, title, text, url, footer);
// weird stuff
public static Task<IUserMessage> SendTableAsync<T>(
this IMessageChannel ch,
string seed,
IEnumerable<T> items,
Func<T, string> howToPrint,
int columns = 3)
=> ch.SendMessageAsync($@"{seed}```xl
{items.Chunk(columns)
.Select(ig => string.Concat(ig.Select(howToPrint)))
.Join("\n")}
```");
public static Task<IUserMessage> SendTableAsync<T>(
this IMessageChannel ch,
IEnumerable<T> items,
Func<T, string> howToPrint,
int columns = 3)
=> ch.SendTableAsync("", items, howToPrint, columns);
public static Task SendPaginatedConfirmAsync(
this ICommandContext ctx,
int currentPage,