NadekoBot Patronage system, Search commands improvements + fixes

This commit is contained in:
Kwoth
2022-06-14 07:24:33 +00:00
parent 18b10b8c6f
commit 7b5145f116
165 changed files with 14920 additions and 1457 deletions

View File

@@ -30,7 +30,7 @@ public static class MessageChannelExtensions
public static async Task<IUserMessage> SendAsync(
this IMessageChannel channel,
string? plainText,
NadekoInteraction? inter,
NadekoButtonInteraction? inter,
Embed? embed = null,
IReadOnlyCollection<Embed>? embeds = null,
bool sanitizeAll = false)
@@ -69,7 +69,7 @@ public static class MessageChannelExtensions
IEmbedBuilder? embed,
string plainText = "",
IReadOnlyCollection<IEmbedBuilder>? embeds = null,
NadekoInteraction? inter = null)
NadekoButtonInteraction? inter = null)
=> ch.SendAsync(plainText,
inter,
embed: embed?.Build(),
@@ -80,7 +80,7 @@ public static class MessageChannelExtensions
IEmbedBuilderService eb,
string text,
MessageType type,
NadekoInteraction? inter = null)
NadekoButtonInteraction? inter = null)
{
var builder = eb.Create().WithDescription(text);
@@ -106,12 +106,14 @@ public static class MessageChannelExtensions
this IMessageChannel ch,
IEmbedBuilderService eb,
MessageType type,
string title,
string? title,
string text,
string? url = null,
string? footer = null)
{
var embed = eb.Create().WithDescription(text).WithTitle(title);
var embed = eb.Create()
.WithDescription(text)
.WithTitle(title);
if (url is not null && Uri.IsWellFormedUriString(url, UriKind.Absolute))
embed.WithUrl(url);
@@ -135,7 +137,7 @@ public static class MessageChannelExtensions
public static Task<IUserMessage> SendConfirmAsync(
this IMessageChannel ch,
IEmbedBuilderService eb,
string title,
string? title,
string text,
string? url = null,
string? footer = null)