Added embed colours to kick/ban

pull/8/head
sgoudham 4 years ago
parent e40cf0d9a0
commit 6c3f163cca

@ -266,11 +266,13 @@ class Moderation(Cog):
# When no members are entered. Throw an error
if not len(members):
embed = Embed(description="Not Correct Syntax!"
"\nUse **{}help** to find how to use **{}**".format(ctx.prefix, ctx.command))
"\nUse **{}help** to find how to use **{}**".format(ctx.prefix, ctx.command),
colour=enso_embedmod_colours)
await ctx.send(embed=embed)
# Throw error when user tries to kick themselves
elif ctx.author in members:
embed = Embed(description="**❌ You Can't Kick Yourself Baka! ❌**")
embed = Embed(description="**❌ You Can't Kick Yourself Baka! ❌**",
colour=enso_embedmod_colours)
await ctx.send(embed=embed)
return
# As long as all members are valid
@ -292,11 +294,13 @@ class Moderation(Cog):
# When no members are entered. Throw an error
if not len(members):
embed = Embed(description="Not Correct Syntax!"
"\nUse **{}help** to find how to use **{}**".format(ctx.prefix, ctx.command))
"\nUse **{}help** to find how to use **{}**".format(ctx.prefix, ctx.command),
colour=enso_embedmod_colours)
await ctx.send(embed=embed)
# Throw error when user tries to kick themselves
elif ctx.author in members:
embed = Embed(description="**❌ You Can't Ban Yourself Baka! ❌**")
embed = Embed(description="**❌ You Can't Ban Yourself Baka! ❌**",
colour=enso_embedmod_colours)
await ctx.send(embed=embed)
return
# As long as all members are valid

Loading…
Cancel
Save