From 79706fbe348e1654fa6b7651df23d56575cc0b88 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Sat, 7 Sep 2024 15:05:34 -0400 Subject: [PATCH] Fix bad array index. Send event to event channel when approved. --- cogs/commands/record.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/commands/record.py b/cogs/commands/record.py index 0f79066..50c58a2 100644 --- a/cogs/commands/record.py +++ b/cogs/commands/record.py @@ -188,7 +188,7 @@ class EventView(nextcord.ui.View): self.event_participants.values.members, interaction.message.embeds[0].fields[1].value, self.host_id ) await verification_channel.send( - content="Event record request.", embed=interaction.message.embeds[1], view=verification_view + content="Event record request.", embed=interaction.message.embeds[0], view=verification_view ) submission_response = "Event has been submitted to admins for approval." else: @@ -233,6 +233,8 @@ class EventVerification(nextcord.ui.View): interaction (nextcord.Interaction): The interaction of the user clicking the button. """ process_event(self.discord_users, self.non_discord_users, self.host_id) + event_channel: nextcord.TextChannel = interaction.guild.get_channel(settings.channel_ids.event_post) + await event_channel.send(embed=interaction.message.embeds[0]) content = f"\nApproved by <@{interaction.user.id}>." await interaction.response.edit_message(content=content, view=None)