original_docstring: Check to ensure that the interacting user is the user who invoked the command.
docstring: Check to ensure that the interacting user is the user who invoked the command.
docstring_tokens: Check to ensure that the interacting user is the user who invoked the command .
code: async def interaction_check(self, interaction: discord.Interaction) -> bool:
          """Check to ensure that the interacting user is the user who invoked the command."""
          if interaction.user != self.ctx.author:
              embed = discord.Embed(description="Sorry, but this interaction can only be used by the original author.")
              await interaction.response.send_message(embed=embed, ephemeral=True)
              return False
          else:
              return True
code_tokens: async def interaction_check ( self , interaction : discord . Interaction ) -> bool : if interaction . user != self . ctx . author : embed = discord . Embed ( description = "Sorry, but this interaction can only be used by the original author." ) await interaction . response . send_message ( embed = embed , ephemeral = True ) return False else : return True
short_docstring: Check to ensure that the interacting user is the user who invoked the command.
short_docstring_tokens: Check to ensure that the interacting user is the user who invoked the command .
comment: """Check to ensure that the interacting user is the user who invoked the command."""