GalaxyCogs/suggestions/__init__.py
SeaswimmerTheFsh 41e852b728
Some checks reported warnings
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
fix(suggestions): fixed context commands preventing the cog from loading
2023-09-21 11:14:40 -04:00

14 lines
529 B
Python

from .suggestions import Suggestions, approve_context, deny_context
async def setup(bot):
await bot.add_cog(Suggestions(bot))
async def setup(bot):
bot.tree.add_command(approve_context)
bot.tree.add_command(deny_context)
async def teardown(bot):
# We're removing the commands here to ensure they get unloaded properly when the cog is unloaded.
bot.tree.remove_command("approve_context", type=discord.AppCommandType.message)
bot.tree.remove_command("deny_context", type=discord.AppCommandType.message)