Skip to content

Commit

Permalink
Update examples/app_commands/slash_options.py
Browse files Browse the repository at this point in the history
Co-authored-by: Icebluewolf <44532864+Icebluewolf@users.noreply.github.com>
  • Loading branch information
jontobonto and Icebluewolf authored Mar 4, 2022
1 parent 5210823 commit 5ea9d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/app_commands/slash_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 5ea9d10

Please sign in to comment.