fix: .dmcmd will now correctly block commands in dms, not globally

change: timely will no longer require guild context, as dmcmd .timely will do the same thing
This commit is contained in:
Kwoth
2024-12-13 08:22:13 +00:00
parent 758093eb32
commit 8598419c5f
2 changed files with 2 additions and 3 deletions

View File

@@ -135,7 +135,6 @@ public partial class Gambling : GamblingModule<GamblingService>
}); });
[Cmd] [Cmd]
[RequireContext(ContextType.Guild)]
public async Task Timely() public async Task Timely()
{ {
var val = Config.Timely.Amount; var val = Config.Timely.Amount;

View File

@@ -92,13 +92,13 @@ public class GlobalPermissionService : IExecPreCommand, INService
{ {
if (priv) if (priv)
{ {
if (bs.Blocked.Commands.Add(commandName)) if (bs.DmBlocked.Commands.Add(commandName))
{ {
added = true; added = true;
} }
else else
{ {
bs.Blocked.Commands.Remove(commandName); bs.DmBlocked.Commands.Remove(commandName);
added = false; added = false;
} }