Skip to content

Commit

Permalink
Merge pull request #156 from MiscGuild/bugfix-alliance-tickets
Browse files Browse the repository at this point in the history
fix: fixed alliance modals
  • Loading branch information
Amxgh authored Nov 5, 2023
2 parents 6524645 + 3c70073 commit 75e53b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/utils/discord_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,13 @@ async def callback(self, interaction: discord.Interaction):
embed.set_footer(text="Please provide:\nGuild Logo\nGuild Advertisement Message")
fields.extend(
[["What is the IGN of your guild master?", "", discord.InputTextStyle.short, "Guild Master"],
["What is your guild's preferred gamemode?", "You needn't have one",
["What is your guild's preferred gamemode?", "If you don't have one, just say 'None'",
discord.InputTextStyle.short, "Guild's Preferred Gamemodes"],
[f"Why should we ally?", "", discord.InputTextStyle.long,
"Why we should consider allying"]])
[f"Why should we ally with you guys?", "", discord.InputTextStyle.long,
f"Benefits of allying with {guild['name']}"]])
await interaction.response.send_modal(
modal=uiutils.ModalCreator(embed=embed, fields=fields, ign=ign, title="Alliance Request"))
modal=uiutils.ModalCreator(embed=embed, fields=fields, ign=ign, uuid=uuid,
title="Alliance Request"))
return
if option == "Other":
await ticket.edit(name=f"other-{ign}", topic=f"{interaction.user.id}|",
Expand Down

0 comments on commit 75e53b4

Please sign in to comment.