Skip to content

Commit

Permalink
Rename redbot.core.modlog.handle_auditype_key to start with _
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackenmen committed May 8, 2023
1 parent ed71c72 commit 62b3e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion redbot/core/core_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,7 @@ async def modlogset(self, ctx: commands.Context):
@modlogset.command(hidden=True, name="fixcasetypes")
async def modlogset_fixcasetypes(self, ctx: commands.Context):
"""Command to fix misbehaving casetypes."""
await modlog.handle_auditype_key()
await modlog._handle_audit_type_key()
await ctx.tick()

@modlogset.command(aliases=["channel"], name="modlog")
Expand Down
4 changes: 2 additions & 2 deletions redbot/core/modlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ async def on_member_unban(guild: discord.Guild, user: discord.User):
bot.add_listener(on_member_unban)


async def handle_auditype_key():
async def _handle_audit_type_key():
all_casetypes = {
casetype_name: {
inner_key: inner_value
Expand Down Expand Up @@ -224,7 +224,7 @@ async def _migrate_config(from_version: int, to_version: int):
)

if from_version < 3 <= to_version:
await handle_auditype_key()
await _handle_audit_type_key()
await _config.schema_version.set(3)

if from_version < 4 <= to_version:
Expand Down

0 comments on commit 62b3e0b

Please sign in to comment.