#Capturing all errors

1 messages · Page 1 of 1 (latest)

gilded moss
#

Just use on_application_command_error

normal kite
#

that doesnt seem to pick naything up?

gilded moss
#

Show your code

normal kite
#
    @commands.Cog.listener()
    async def on_application_command_error(self, error):
        print("error found")
        channel = self.bot.get_channel(990575671958990858)
        await channel.send(f"**Bot Error Found!\n\n**"
                                   f"{error}")
#

waiiittt

#

wait no nevermind

#

still isnt working

gilded moss
#

Not in a cog

#

Define it in your main file

normal kite
#

i tried that too bit it didnt work

#

nope just tried again with no luck

gilded moss
#

And how are you defining it in your main file?

normal kite
#
@bot.event
async def on_application_command_error(error):
        print("error found")
        channel = bot.get_channel(1054446789027172383)
        await channel.send(f"**Bot Error Found!\n\n**"
                           f"{error}")
gilded moss
#

Are you using discord.Bot or commands.Bot?

normal kite