Skip to content

Commit

Permalink
Merge pull request #96 from imkrvishal/patch-1
Browse files Browse the repository at this point in the history
Update advanced.py
  • Loading branch information
EvieePy authored Jun 22, 2021
2 parents 58b3439 + dbd655f commit eda26c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
-------------------------------------------------------------------------------
This example uses the following which must be installed prior to running:
- Discord.py version >= 1.3.1 (pip install -U discord.py)
- Discord.py version >= 1.7.1 (pip install -U discord.py)
- Wavelink version >= 0.5.1 (pip install -U wavelink)
- menus version >= 1.0.0-a (pip install -U git+https://github.com/Rapptz/discord-ext-menus.git)
- Python 3.7+
Expand Down Expand Up @@ -450,7 +450,7 @@ def is_privileged(self, ctx: commands.Context):
return player.dj == ctx.author or ctx.author.guild_permissions.kick_members

@commands.command()
async def connect(self, ctx: commands.Context, *, channel: discord.VoiceChannel = None):
async def connect(self, ctx: commands.Context, *, channel: typing.Union[discord.VoiceChannel, discord.StageChannel] = None):
"""Connect to a voice channel."""
player: Player = self.bot.wavelink.get_player(guild_id=ctx.guild.id, cls=Player, context=ctx)

Expand Down

0 comments on commit eda26c8

Please sign in to comment.