Skip to content

Commit

Permalink
pattermatching without args
Browse files Browse the repository at this point in the history
  • Loading branch information
timpehoerig committed Jul 6, 2023
1 parent 371b41a commit 2bf478c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ async def off_topic_channel_request_modal(interaction: Interaction):
# sends the rquest to admin channel
async def on_request(input: ChannelRequestInput | OffTopicChannelRequestInput, interaction: Interaction):
match input:
case ChannelRequestInput(_):
case ChannelRequestInput():
await forward_channel_request(input, interaction)
case OffTopicChannelRequestInput(_):
case OffTopicChannelRequestInput():
await forward_off_topic_channel_request(input, interaction)

channels_request_button.callback = channel_request_modal
Expand Down

0 comments on commit 2bf478c

Please sign in to comment.