GalaxyCogs/suggestions/__init__.py
SeaswimmerTheFsh 08ad1fe902
All checks were successful
Pylint / Pylint (push) Successful in 1m6s
fix(suggestions): pylint fixes
2023-09-24 20:50:43 -04:00

12 lines
580 B
Python

from .suggestions import Suggestions, approve_context, deny_context
async def setup(bot):
await bot.add_cog(Suggestions(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) # pylint: disable=undefined-variable
bot.tree.remove_command("deny_context", type=discord.AppCommandType.message) # pylint: disable=undefined-variable