mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
vars and target-typed new
This commit is contained in:
@@ -283,7 +283,7 @@ public class Help : NadekoModule<HelpService>
|
||||
|
||||
if (com is null)
|
||||
{
|
||||
IMessageChannel ch = channel is ITextChannel
|
||||
var ch = channel is ITextChannel
|
||||
? await ((IGuildUser)ctx.User).GetOrCreateDMChannelAsync().ConfigureAwait(false)
|
||||
: channel;
|
||||
try
|
||||
|
@@ -135,7 +135,7 @@ public class HelpService : ILateExecutor, INService
|
||||
var userPerm = (UserPermAttribute)cmd.Preconditions
|
||||
.FirstOrDefault(ca => ca is UserPermAttribute);
|
||||
|
||||
string userPermString = string.Empty;
|
||||
var userPermString = string.Empty;
|
||||
if (userPerm is not null)
|
||||
{
|
||||
if (userPerm.UserPermissionAttribute.ChannelPermission is ChannelPermission cPerm)
|
||||
|
Reference in New Issue
Block a user