Fixed whisper command

This commit is contained in:
TropiiDev 2025-03-16 19:45:13 -04:00
parent 84902dae12
commit 4036cd1968

View File

@ -12,7 +12,9 @@ class Whisper(commands.Cog):
@app_commands.command(name="whisper", description="secretly send someone a message")
async def whisper(self, interaction: discord.Interaction, user: discord.User, message: str):
await interaction.response.send_message(f"{user.mention}, {interaction.user.mention} whispered '{message}'", ephemeral=True)
await interaction.response.send_message("Sending message..", ephemeral=True)
await user.send(f"{interaction.user.mention} has whispered '{message}'")
await interaction.followup.send("Message sent", ephemeral=True)
async def setup(bot):
await bot.add_cog(Whisper(bot))