Derpius / pythonsourceserverdiscordbot

Discord bot for my Python source server query library
GNU General Public License v3.0
3 stars 1 forks source link

[bug] Calling help command in a channel with no connection or a closed one STILL breaks #21

Closed Derpius closed 3 years ago

Derpius commented 3 years ago

Describe the bug Due to the way discord.py autodocs work, my command checks for the UserCommands cog that makes sure the channel the command is called in has a running server connection, causing help to not show the UserCommands.

To Reproduce Steps to reproduce the behaviour:

  1. Go into a channel with no active server connection
  2. Enter the help command (!help with the default prefix)

Expected behavior While still using a cog check for the UserCommands, allow calls to help to pass through (this may mean manually defining help data).

Derpius commented 3 years ago

Almost fixed in d26cde09e10623aabcc400d0468fe08c2a429ccf and finally fixed in 512184b52136ee50ed94d77a2110bc2fa44efce5