|
|
|
|
|
|
|
|
elif isinstance(error, commands.MissingRequiredArgument): |
|
|
elif isinstance(error, commands.MissingRequiredArgument): |
|
|
embed = discord.Embed(description="Argument missing. {}".format(error.args[0])) |
|
|
embed = discord.Embed(description="Argument missing. {}".format(error.args[0])) |
|
|
elif isinstance(error, commands.BadArgument): |
|
|
elif isinstance(error, commands.BadArgument): |
|
|
embed = discord.Embed(description="Invalid Argument given. Please check arguments given.") |
|
|
|
|
|
|
|
|
embed = discord.Embed(description="Invalid Argument given. {}".format(error.args[0])) |
|
|
elif isinstance(error, commands.TooManyArguments): |
|
|
elif isinstance(error, commands.TooManyArguments): |
|
|
embed = discord.Embed(description="Too many arguments given.") |
|
|
embed = discord.Embed(description="Too many arguments given.") |
|
|
elif isinstance(error, commands.CommandNotFound): |
|
|
elif isinstance(error, commands.CommandNotFound): |
|
|
|
|
|
|
|
|
description="Placeholder embed. If you see this please message {}.".format(str(self.owner))) |
|
|
description="Placeholder embed. If you see this please message {}.".format(str(self.owner))) |
|
|
if embed: |
|
|
if embed: |
|
|
embed.colour = err_colour |
|
|
embed.colour = err_colour |
|
|
await ctx.send(embed=embed) |
|
|
|
|
|
|
|
|
await ctx.send(embed=embed, delete_after=8) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup(bot_client): |
|
|
def setup(bot_client): |