Skip to main content

discord-sentry-reporting

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

Download#

PyPI Package discord-sentry-reporting

Usage#

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!
bot.run("token")