#the work of the bot in PM

1 messages · Page 1 of 1 (latest)

compact lotus
#

Hello everyone, taking care of the question, how to completely limit the activity of the bot in private messages? There was an option with a decorator, and it worked, but it is outrageously badly spamming errors into the console

elder stream
#

you mean guild_only()?

#

do you use something like a error handler?

compact lotus
# elder stream you mean guild_only()?

Yes, exactly. Every time I use a command to which this decorator is applied, I get an error in the console. I'm sorry, I can't provide an error, since I'm not at home at the moment

torn anvil
elder stream
#

Do you use a Error handler @compact lotus ?

compact lotus
#

no XD

elder stream
#

You really should start to use one

compact lotus
#

Okay, thanks a lot

elder stream
#

on_error, on_command_error for prefix commands and on_application_command_error (if I remember correctly) is for application commans