mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 01:08:26 -04:00
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:
@@ -135,7 +135,6 @@ public partial class Gambling : GamblingModule<GamblingService>
|
||||
});
|
||||
|
||||
[Cmd]
|
||||
[RequireContext(ContextType.Guild)]
|
||||
public async Task Timely()
|
||||
{
|
||||
var val = Config.Timely.Amount;
|
||||
|
@@ -92,13 +92,13 @@ public class GlobalPermissionService : IExecPreCommand, INService
|
||||
{
|
||||
if (priv)
|
||||
{
|
||||
if (bs.Blocked.Commands.Add(commandName))
|
||||
if (bs.DmBlocked.Commands.Add(commandName))
|
||||
{
|
||||
added = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
bs.Blocked.Commands.Remove(commandName);
|
||||
bs.DmBlocked.Commands.Remove(commandName);
|
||||
added = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user