error_handling package

async handle_forbidden_from_block(error, message=None)[source]

Handles discord.Forbidden 90001 errors, or re-raises if error isn’t a 90001 error.

Parameters:
  • error (Forbidden) – The raised discord.Forbidden to check.

  • message (Message | None) – The message to reply to and include in logs, if error is 90001 and message is provided.

Return type:

None

Subpackages