mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
- Reaction roles rewritten completely. They now support multiple exclusivity groups per message and level requirements. However they can only be added one by one
- Bot now support much higher XP values for global and server levels
This commit is contained in:
@@ -5,27 +5,9 @@ namespace NadekoBot;
|
||||
|
||||
public static class MedusaExtensions
|
||||
{
|
||||
// public static Task<IUserMessage> EmbedAsync(this IMessageChannel ch,
|
||||
// IEmbedBuilder embed,
|
||||
// string msg = "",
|
||||
// MessageComponent? components = null)
|
||||
// {
|
||||
// return ch.SendMessageAsync(msg,
|
||||
// embed: embed.Build(),
|
||||
// components: components,
|
||||
// options: new()
|
||||
// {
|
||||
// RetryMode = RetryMode.AlwaysRetry
|
||||
// });
|
||||
// }
|
||||
|
||||
public static Task<IUserMessage> EmbedAsync(this IMessageChannel ch,
|
||||
IEmbedBuilder embed,
|
||||
string msg = "",
|
||||
MessageComponent? components = null)
|
||||
public static Task<IUserMessage> EmbedAsync(this IMessageChannel ch, IEmbedBuilder embed, string msg = "")
|
||||
=> ch.SendMessageAsync(msg,
|
||||
embed: embed.Build(),
|
||||
components: components,
|
||||
options: new()
|
||||
{
|
||||
RetryMode = RetryMode.AlwaysRetry
|
||||
@@ -51,7 +33,7 @@ public static class MedusaExtensions
|
||||
public static Task<IUserMessage> SendErrorAsync(this AnyContext ctx, string msg)
|
||||
=> ctx.Channel.SendErrorAsync(ctx, msg);
|
||||
|
||||
// reaction responses
|
||||
// localized
|
||||
public static Task ConfirmAsync(this AnyContext ctx)
|
||||
=> ctx.Message.AddReactionAsync(new Emoji("✅"));
|
||||
|
||||
@@ -64,7 +46,6 @@ public static class MedusaExtensions
|
||||
public static Task WaitAsync(this AnyContext ctx)
|
||||
=> ctx.Message.AddReactionAsync(new Emoji("🤔"));
|
||||
|
||||
// localized
|
||||
public static Task<IUserMessage> ErrorLocalizedAsync(this AnyContext ctx, string key, params object[]? args)
|
||||
=> ctx.SendErrorAsync(ctx.GetText(key));
|
||||
|
||||
|
Reference in New Issue
Block a user