I'm using the commands submodule and in a particular cog I've got 8 slash commands all working perfectly, but when I added a message_command, it doesn't appear in the context menu.
@commands.cooldown(1, 60)
@commands.message_command(name="Report confession", dm_permission=False)
async def report(self, inter:disnake.MessageCommandInteraction):
""" Reports a confession to the bot owners """
if inter.target.author != self.bot.user or inter.target.embeds.count == 0:
inter.response.send_message(self.bot.babel(inter, 'confessions', 'report_invalid_message'))
return
inter.response.send_modal(self.ReportModal(self, inter.target, inter))
I spotted somebody else had a similar issue 30 days ago, however they didn't share their solution.