Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7bac2048f | ||
|
|
dd4bee73c6 |
@@ -28,11 +28,16 @@ class SubmissionListener(commands.Cog, name="Message Listener"):
|
|||||||
if proof_message.channel.id == highscores_data["submission_channel_id"]:
|
if proof_message.channel.id == highscores_data["submission_channel_id"]:
|
||||||
|
|
||||||
embed = submission_message.embeds[0]
|
embed = submission_message.embeds[0]
|
||||||
embed.add_field(name="Score", value=proof_message.content, inline=False)
|
if proof_message.content:
|
||||||
await submission_message.edit(
|
embed.add_field(name="Score", value=proof_message.content, inline=False)
|
||||||
files=[await attch.to_file() for attch in proof_message.attachments],
|
await submission_message.edit(
|
||||||
embed=embed,
|
embed=embed,
|
||||||
)
|
)
|
||||||
|
if len(proof_message.attachments) > 0:
|
||||||
|
await submission_message.edit(
|
||||||
|
files=[await attch.to_file() for attch in proof_message.attachments],
|
||||||
|
)
|
||||||
|
|
||||||
await proof_message.delete()
|
await proof_message.delete()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ class VerificationView(nextcord.ui.View):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
await submit_score(interaction, user, boss_name, category, score)
|
await submit_score(interaction, user, boss_name, category, score)
|
||||||
await interaction.message.edit("Approved.", view=None)
|
await interaction.message.edit(f"Approved by <@{interaction.user.id}>.", view=None)
|
||||||
except UnboundLocalError:
|
except UnboundLocalError:
|
||||||
await interaction.send("Instruct user to submit with all fields.")
|
await interaction.send("Instruct user to submit with all fields.")
|
||||||
await interaction.message.edit(view=None)
|
await interaction.message.edit(view=None)
|
||||||
|
|||||||
Reference in New Issue
Block a user