Reducing amount of indents

pull/8/head
sgoudham 4 years ago
parent 0546469e81
commit f35ea75859

@ -22,14 +22,15 @@ def AnonOrNot(author):
AnonModMailEmbed.set_thumbnail(url=author.avatar_url) AnonModMailEmbed.set_thumbnail(url=author.avatar_url)
AnonModMailEmbed.set_footer(text=f"Sent by {author}") AnonModMailEmbed.set_footer(text=f"Sent by {author}")
fields = [(blank_space, "**We understand that for some things, you may want to remain Anonymous." fields = [(blank_space, "**We understand that for some things,"
"\nFeel free to use the reactions below to choose!**", False), "you may want to remain Anonymous."
"\nUse the reactions below to choose!**", False),
(blank_space, "**Use :white_check_mark: for** `Yes`", True), (blank_space, "**Use :white_check_mark: for** `Yes`", True),
(blank_space, "**Use :x: for** `No`", True), (blank_space, "**Use :x: for** `No`", True),
(blank_space, blank_space, True), (blank_space, blank_space, True),
(blank_space, (blank_space,
"This will make sure that Staff do not know who is sending the mail." "The Staff will not know who is sending this"
"\nAgain, purely negative feedback will not be considered.", True)] "\nPurely negative feedback will not be considered.", True)]
for name, value, inline in fields: for name, value, inline in fields:
AnonModMailEmbed.add_field(name=name, value=value, inline=inline) AnonModMailEmbed.add_field(name=name, value=value, inline=inline)
@ -179,10 +180,8 @@ class Modmail(commands.Cog):
message_id = int(result[2]) message_id = int(result[2])
modmail_channel_id = int(result[3]) modmail_channel_id = int(result[3])
if payload.guild_id == guild_id: # Bunch of checks to make sure it has the right guild, channel, message and reaction
if payload.channel_id == channel_id: if payload.guild_id == guild_id and payload.channel_id == channel_id and payload.message_id == message_id and payload.emoji.name == "":
if payload.message_id == message_id:
if payload.emoji.name == "":
# Get the guild # Get the guild
guild = self.bot.get_guild(payload.guild_id) guild = self.bot.get_guild(payload.guild_id)

Loading…
Cancel
Save