Fix bad array index. Send event to event channel when approved.
build_develop / build (push) Successful in 1m22s
build_develop / build (push) Successful in 1m22s
This commit is contained in:
@@ -188,7 +188,7 @@ class EventView(nextcord.ui.View):
|
|||||||
self.event_participants.values.members, interaction.message.embeds[0].fields[1].value, self.host_id
|
self.event_participants.values.members, interaction.message.embeds[0].fields[1].value, self.host_id
|
||||||
)
|
)
|
||||||
await verification_channel.send(
|
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."
|
submission_response = "Event has been submitted to admins for approval."
|
||||||
else:
|
else:
|
||||||
@@ -233,6 +233,8 @@ class EventVerification(nextcord.ui.View):
|
|||||||
interaction (nextcord.Interaction): The interaction of the user clicking the button.
|
interaction (nextcord.Interaction): The interaction of the user clicking the button.
|
||||||
"""
|
"""
|
||||||
process_event(self.discord_users, self.non_discord_users, self.host_id)
|
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}>."
|
content = f"\nApproved by <@{interaction.user.id}>."
|
||||||
await interaction.response.edit_message(content=content, view=None)
|
await interaction.response.edit_message(content=content, view=None)
|
||||||
|
|||||||
Reference in New Issue
Block a user