.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 f70bcfd1bc
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
4 changed files with 19 additions and 4 deletions

View file

@ -2,6 +2,22 @@
Mostly based on [keepachangelog](https://keepachangelog.com/en/1.1.0/) except date format. a-c-f-r-o
## [5.3.1] - 13.12.2024
## Changed
- `.translate` will now use 2 embeds, to allow for longer messages
- Added role icon to `.inrole`, if it exists
- `.honeypot` will now add a 'Honeypot' as a ban reason.
## Fixed
- `.winlb` looks better, has a title, shows 9 entries now
- `.sar ex` help updated
- `.banner` partially fixed, it still can't show global banners, but it will show guild ones correctly, in a good enough size
- `.sclr` will now show correct color hexes without alpha
- `.dmcmd` will now correctly block commands in dms, not globally
## [5.3.0] - 10.12.2024
## Added

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;
}