Cleaning up projects, project is building

This commit is contained in:
Kwoth
2023-04-06 10:57:30 +02:00
parent 1f1b01995e
commit 069f8fab9d
82 changed files with 822 additions and 706 deletions

View File

@@ -24,10 +24,12 @@ public sealed class PermissionChecker : IPermissionChecker, INService
IMessageChannel channel,
IUser author,
string module,
string cmd)
string? cmd)
{
module = module.ToLowerInvariant();
cmd = cmd?.ToLowerInvariant();
// todo add proper string
if (await _cmdCds.TryBlock(guild, author, cmd))
if (cmd is not null && await _cmdCds.TryBlock(guild, author, cmd))
return new Error<LocStr>(new());
try