2023-09-21 11:14:40 -04:00
|
|
|
from .suggestions import Suggestions, approve_context, deny_context
|
2023-02-27 12:43:38 -05:00
|
|
|
|
|
|
|
|
2023-08-07 17:34:57 -04:00
|
|
|
async def setup(bot):
|
|
|
|
await bot.add_cog(Suggestions(bot))
|
2023-09-21 11:14:40 -04:00
|
|
|
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.
|
2023-09-24 20:50:43 -04:00
|
|
|
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
|