Clean up description input a little bit
This commit is contained in:
		@@ -234,16 +234,21 @@ async def generate_member_info_card(conn, member: asyncpg.Record) -> discord.Emb
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async def text_input(message, subject):
 | 
					async def text_input(message, subject):
 | 
				
			||||||
    await client.send_message(message.channel, "Reply in this channel with the new description you want to set for {}.".format(subject))
 | 
					    embed = make_default_embed("")
 | 
				
			||||||
    msg = await client.wait_for_message(author=message.author, channel=message.channel)
 | 
					    embed.description = "Reply in this channel with the new description you want to set for {}.".format(subject)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    await client.send_message(message.channel, "Alright. When you're happy with the new description, click the ✅ reaction. To cancel, click the ❌ reaction.")
 | 
					    status_msg = await client.send_message(message.channel, embed=embed)
 | 
				
			||||||
    await client.add_reaction(msg, "✅")
 | 
					    reply_msg = await client.wait_for_message(author=message.author, channel=message.channel)
 | 
				
			||||||
    await client.add_reaction(msg, "❌")
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    reaction = await client.wait_for_reaction(emoji=["✅", "❌"], message=msg, user=message.author)
 | 
					    embed.description = "Alright. When you're happy with the new description, click the ✅ reaction. To cancel, click the ❌ reaction."
 | 
				
			||||||
 | 
					    await client.edit_message(status_msg, embed=embed)
 | 
				
			||||||
 | 
					    await client.add_reaction(reply_msg, "✅")
 | 
				
			||||||
 | 
					    await client.add_reaction(reply_msg, "❌")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    reaction = await client.wait_for_reaction(emoji=["✅", "❌"], message=reply_msg, user=message.author)
 | 
				
			||||||
    if reaction.reaction.emoji == "✅":
 | 
					    if reaction.reaction.emoji == "✅":
 | 
				
			||||||
        return msg.content
 | 
					        await client.clear_reactions(reply_msg)
 | 
				
			||||||
 | 
					        return reply_msg.content
 | 
				
			||||||
    else:
 | 
					    else:
 | 
				
			||||||
        await client.clear_reactions(msg)
 | 
					        await client.clear_reactions(reply_msg)
 | 
				
			||||||
        return None
 | 
					        return None
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user