Getting rid of Try/Except in the on_member_join event

pull/4/head
sgoudham 4 years ago
parent 76d4305dda
commit 7d35a0e453

@ -56,9 +56,6 @@ async def on_member_join(member):
server_icon = "https://media.discordapp.net/attachments/683490529862090814/715010931620446269/image1.jpg?width=658&height=658"
welcome_gif = "https://cdn.discordapp.com/attachments/714671068941647933/717144047252275270/f4d7de6463d3ada02058a094fd6917ac.gif"
# Surround with try/except to catch any exceptions that may occur
try:
# Set up embed for the #newpeople channel
embed = Embed(title="\n**Welcome To Ensō!**",
colour=Colour(0x30e419),
@ -93,9 +90,6 @@ async def on_member_join(member):
# Send welcome message to #general
await general.send(general_welcome)
except Exception as ex:
print(ex)
# Allowing people to get ping-able self roles
@client.command(name="rolemenu")

Loading…
Cancel
Save