Skip to content

Commit

Permalink
made args of add_field keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
timpehoerig committed Jul 9, 2023
1 parent da9c58d commit 0dda4d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,6 @@ async def on_decline(
decline_interaction.response, decline_channel_send
)


# Fehler liegt hier
view, embed = create_channel_request_accept_embed(
input, request_interaction, on_accept, on_decline
)
Expand Down
20 changes: 13 additions & 7 deletions src/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,19 @@ async def channel_request_decline_modal(modal_interaction: Interaction):
colour=Colour.blurple(),
timestamp=datetime.now(),
)
#accept_channel_request_embed.add_field(
# "Name of Lecture", input.name_of_lecture.value
#)
#accept_channel_request_embed.add_field("Kind of Lecture", input.kind_of_event.value)
#accept_channel_request_embed.add_field(
# "Name of Channel", input.name_of_channel.value
#)
# Fehler liegt hier
accept_channel_request_embed.add_field(
name="Name of Lecture",
value=input.name_of_lecture.value
)
accept_channel_request_embed.add_field(
name="Kind of Lecture",
value=input.kind_of_event.value
)
accept_channel_request_embed.add_field(
name="Name of Channel",
value=input.name_of_channel.value
)
accept_channel_request_embed.set_author(
name=interaction.user.nick, icon_url=interaction.user.avatar.url
)
Expand Down

0 comments on commit 0dda4d1

Please sign in to comment.