title: Disnake - Can a bot invoke a slash command?
body: <p>I have a simple game in disnake that posts a message to a channel when played. At the end of that message, I want to add a &quot;Play again&quot; button. The game is initially started by a slash command. When the &quot;Play again&quot; button is clicked, I would like the bot to invoke the slash command that starts the game again. Is this possible?</p>
  <p>In discord.py invoking a regular command was as simple as:</p>
  <pre><code>await ctx.invoke(self.bot.get_command('my_command'))
  </code></pre>
  <p>However, the MessageInteraction object doesn't have an &quot;invoke&quot; method i.e the following doesn't work:</p>
  <pre><code>await interaction.invoke(self.bot.get_command('my_slash_command'))
  </code></pre>
  <p>Edit: I guess the obvious workaround would be to pack the whole game into a function and then call the same function in both the slash command and the button callback (in order to not repeat the code). Is this actually a better way of achieving this? Should interaction processing, in general, always be encapsulated in functions?</p>