Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions redbot/core/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ def parse_cli_flags(args):
)
parser.add_argument("--version", "-V", action="store_true", help="Show Red's current version")
parser.add_argument("--debuginfo", action="store_true", help="Show debug information.")
parser.add_argument(
"--enable-debug-events", action="store_true", help="Enable discord.py socket debug events."
)
parser.add_argument(
"--list-instances",
action="store_true",
Expand Down
3 changes: 3 additions & 0 deletions redbot/core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ async def prefix_manager(bot, message) -> List[str]:
kwargs["max_messages"] = message_cache_size
self._max_messages = message_cache_size

if cli_flags.enable_debug_events:
kwargs["enable_debug_events"] = True

self._uptime = None
self._checked_time_accuracy = None

Expand Down
Loading