Fix incorrect default argument value in [p]streamalert twitch (#5945)

This commit is contained in:
Jakub Kuczys 2022-12-30 03:24:05 +01:00 committed by GitHub
parent 519acedf46
commit fa6b2f8c10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,9 @@ class Streams(commands.Cog):
self, self,
ctx: commands.Context, ctx: commands.Context,
channel_name: str, channel_name: str,
discord_channel: Union[discord.TextChannel, discord.VoiceChannel] = None, discord_channel: Union[
discord.TextChannel, discord.VoiceChannel
] = commands.CurrentChannel,
): ):
"""Manage Twitch stream notifications.""" """Manage Twitch stream notifications."""
await ctx.invoke(self.twitch_alert_channel, channel_name, discord_channel) await ctx.invoke(self.twitch_alert_channel, channel_name, discord_channel)