Skip to content

Commit

Permalink
bugfix in MediaOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCataliasTNT2k committed Mar 28, 2024
1 parent d7e27e4 commit a1af59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moderation/mediaonly/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async def mediaonly(self, ctx: Context):
@MediaOnlyPermission.write.check
@docs(f"{t.commands.add}\n{t.mode_explanation}")
async def mediaonly_add(
self, ctx: Context, channel: GuildMessageable, mode: int, max_length: int | None, log: bool = False
self, ctx: Context, channel: GuildMessageable, mode: int, max_length: int | None = 0, log: bool = False
):
if not 1 <= mode <= 7:
raise CommandError(t.mode_invalid)
Expand Down

0 comments on commit a1af59c

Please sign in to comment.