Compare commits
No commits in common. "84902dae12f1002286cc1cb46a7dde3fc16993dc" and "9a165460e3a960ffa40ee61f59f19e13f1b2d452" have entirely different histories.
84902dae12
...
9a165460e3
@ -1,18 +0,0 @@
|
|||||||
import discord
|
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
|
||||||
|
|
||||||
class Whisper(commands.Cog):
|
|
||||||
def __init__(self, bot):
|
|
||||||
self.bot = bot
|
|
||||||
|
|
||||||
@commands.Cog.listener()
|
|
||||||
async def on_ready(self):
|
|
||||||
print("Whisper Online")
|
|
||||||
|
|
||||||
@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)
|
|
||||||
|
|
||||||
async def setup(bot):
|
|
||||||
await bot.add_cog(Whisper(bot))
|
|
Loading…
Reference in New Issue
Block a user