Skip to content

Commit

Permalink
[Discord] Fix file command invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Nov 20, 2023
1 parent 9614261 commit 4e0b693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Discord/cogs/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ async def audio_file(self, ctx, *, filename: str = ""):
@commands.check_any(checks.is_permitted(), checks.is_guild_owner())
async def file(self, ctx, *, filename: str = ""):
'''Play an audio file'''
if command := ctx.bot.get_command("audio file", filename = filename):
await ctx.invoke(command)
if command := ctx.bot.get_command("audio file"):
await ctx.invoke(command, filename = filename)
else:
raise RuntimeError(
"audio file command not found when file command invoked"
Expand Down

0 comments on commit 4e0b693

Please sign in to comment.