mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 17:58:26 -04:00
Switch to discord.net 3.0.0
This commit is contained in:
@@ -274,7 +274,7 @@ public class Help : NadekoModule<HelpService>
|
||||
if (com is null)
|
||||
{
|
||||
var ch = channel is ITextChannel
|
||||
? await ((IGuildUser)ctx.User).GetOrCreateDMChannelAsync().ConfigureAwait(false)
|
||||
? await ctx.User.CreateDMChannelAsync().ConfigureAwait(false)
|
||||
: channel;
|
||||
try
|
||||
{
|
||||
|
@@ -132,9 +132,9 @@ public class HelpService : ILateExecutor, INService
|
||||
var userPermString = string.Empty;
|
||||
if (userPerm is not null)
|
||||
{
|
||||
if (userPerm.UserPermissionAttribute.ChannelPermission is { } cPerm)
|
||||
if (userPerm.ChannelPermission is { } cPerm)
|
||||
userPermString = GetPreconditionString((ChannelPerm) cPerm);
|
||||
if (userPerm.UserPermissionAttribute.GuildPermission is { } gPerm)
|
||||
if (userPerm.GuildPermission is { } gPerm)
|
||||
userPermString = GetPreconditionString((GuildPerm) gPerm);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user