|
|
@ -258,7 +258,11 @@ class Moderation(Cog):
|
|
|
|
embed = Embed(description="Not Correct Syntax!"
|
|
|
|
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))
|
|
|
|
await ctx.send(embed=embed)
|
|
|
|
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! ❌")
|
|
|
|
|
|
|
|
await ctx.send(embed=embed)
|
|
|
|
|
|
|
|
return
|
|
|
|
# As long as all members are valid
|
|
|
|
# As long as all members are valid
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# Send embed of the kicked member
|
|
|
|
# Send embed of the kicked member
|
|
|
@ -280,7 +284,11 @@ class Moderation(Cog):
|
|
|
|
embed = Embed(description="Not Correct Syntax!"
|
|
|
|
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))
|
|
|
|
await ctx.send(embed=embed)
|
|
|
|
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! ❌")
|
|
|
|
|
|
|
|
await ctx.send(embed=embed)
|
|
|
|
|
|
|
|
return
|
|
|
|
# As long as all members are valid
|
|
|
|
# As long as all members are valid
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# Send embed of the Banned member
|
|
|
|
# Send embed of the Banned member
|
|
|
|