mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
NadekoBot.Extensions should now be fully annotated with nullable reference types as well as many classes from NadekoBot.Common
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using NadekoBot.Services.Database.Models;
|
||||
#nullable disable
|
||||
using NadekoBot.Services.Database.Models;
|
||||
using NadekoBot.Modules.Xp.Services;
|
||||
using NadekoBot.Modules.Gambling.Services;
|
||||
|
||||
@@ -19,7 +20,7 @@ public partial class Xp : NadekoModule<XpService>
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async Task Experience([Leftover] IUser user = null)
|
||||
{
|
||||
user = user ?? ctx.User;
|
||||
user ??= ctx.User;
|
||||
await ctx.Channel.TriggerTypingAsync().ConfigureAwait(false);
|
||||
var (img, fmt) = await _service.GenerateXpImageAsync((IGuildUser)user).ConfigureAwait(false);
|
||||
await using (img)
|
||||
@@ -434,4 +435,4 @@ public partial class Xp : NadekoModule<XpService>
|
||||
await Task.Delay(1000).ConfigureAwait(false);
|
||||
await ReplyConfirmLocalizedAsync(strs.template_reloaded).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user