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

timely will no longer require guild context, as dmcmd .timely will do the same thing
updated changelog, updated version
This commit is contained in:
Toastie 2024-12-13 22:51:14 +13:00
parent 756555a061
commit 75f5cfde29
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
4 changed files with 19 additions and 4 deletions
src/EllieBot
EllieBot.csproj
Modules
Gambling
Permissions/GlobalPermissions

View file

@ -4,7 +4,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>5.3.0</Version>
<Version>5.3.1</Version>
<!-- Output/build -->
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>

View file

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

View file

@ -92,13 +92,13 @@ public class GlobalPermissionService : IExecPreCommand, IEService
{
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;
}