mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -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]
|
[Cmd]
|
||||||
[RequireContext(ContextType.Guild)]
|
|
||||||
public async Task Timely()
|
public async Task Timely()
|
||||||
{
|
{
|
||||||
var val = Config.Timely.Amount;
|
var val = Config.Timely.Amount;
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user