Skip to content

Instantly share code, notes, and snippets.

@JacksonChen666
Last active April 15, 2021 08:46
Show Gist options
  • Save JacksonChen666/a382ec0032866ce5f1d32ab1aed4f1f5 to your computer and use it in GitHub Desktop.
Save JacksonChen666/a382ec0032866ce5f1d32ab1aed4f1f5 to your computer and use it in GitHub Desktop.
Replace discord.py default help with a better looking version of it.
# Find it here: https://github.com/JacksonChen666/Discords-Essentials/blob/master/Cogs/Helps.py
# This is used as a cog, and seprate from other files.
# From https://gist.github.com/InterStella0/b78488fb28cadf279dfd3164b9f0cf96 and I did it incorrectly.
# This also temporaily replaces any help command and reverts when unloaded.
import discord
from discord.ext import commands
class Helps(commands.MinimalHelpCommand):
async def send_pages(self):
destination = self.get_destination()
for page in self.paginator.pages:
await destination.send(embed=(discord.Embed(description=page)))
def setup(bot):
bot.original_help_command = bot.help_command
bot.help_command = Helps()
def teardown(bot):
bot.help_command = bot.original_help_command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment