diff --git a/examples/app_commands/slash_options.py b/examples/app_commands/slash_options.py index 98f5c68243..2c63f66dec 100644 --- a/examples/app_commands/slash_options.py +++ b/examples/app_commands/slash_options.py @@ -22,7 +22,7 @@ async def hello( @bot.slash_command(guild_ids=[...]) async def channel( ctx: discord.ApplicationContext, - channel: Option((discord.TextChannel, discord.VoiceChannel) "Select a channel") + channel: Option((discord.TextChannel, discord.VoiceChannel), "Select a channel") # you can specify allowed channel types by passing a tuple of them like: (discord.TextChannel, discord.VoiceChannel) ): await ctx.respond(f"Hi! You selected {channel.mention} channel.")