Skip to content

Commit d4ec13e

Browse files
martinbndrTaaku18
andauthored
[Fix] disable new command not updating db config (#3278)
* [Fix] disable new command not updating ``disable new`` command didn´t update db config if modmail was already disabled for all threads. * Update changelog --------- Co-authored-by: Taku <[email protected]>
1 parent 48bf245 commit d4ec13e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
2727
- Guild icons in embed footers and author urls now have a fixed size of 128. ([PR #3261](https://github.com/modmail-dev/modmail/pull/3261))
2828
- Discord.py internal logging is now enabled by default. ([PR #3216](https://github.com/modmail-dev/Modmail/pull/3216))
2929
- The confirm-thread-creation dialog now uses buttons instead of reactions. ([PR #3273](https://github.com/modmail-dev/Modmail/pull/3273))
30+
- `?disable all` no longer overrides `?disable new`. ([PR #3278](https://github.com/modmail-dev/Modmail/pull/3278))
3031

3132
### Internal
3233
- Renamed `Bot.log_file_name` to `Bot.log_file_path`. Log files are now created at `temp/logs/modmail.log`. ([PR #3216](https://github.com/modmail-dev/Modmail/pull/3216))

cogs/modmail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ async def disable_new(self, ctx):
21522152
description="Modmail will not create any new threads.",
21532153
color=self.bot.main_color,
21542154
)
2155-
if self.bot.config["dm_disabled"] < DMDisabled.NEW_THREADS:
2155+
if self.bot.config["dm_disabled"] != DMDisabled.NEW_THREADS:
21562156
self.bot.config["dm_disabled"] = DMDisabled.NEW_THREADS
21572157
await self.bot.config.update()
21582158

0 commit comments

Comments
 (0)