Skip to main content


discord-sentry-reporting takes a Client object, and makes it so errors are reported to Sentry.


PyPI Package discord-sentry-reporting


Here is an example bot that uses it:

import discordfrom discord_sentry_reporting import use_sentry
bot = discord.AutoShardedClient()
use_sentry(    bot,    dsn="[email protected]"    # pass any other keyword arguments here    # they will be passed to the Sentry SDK)

@bot.eventasync def on_message(message):    assert 1 == 0    # resulting AssertionError will be reported!"token")