

我的守则:
import disnake
from disnake.ext import commands
intents = disnake.Intents.default()
intents.members = True
intents.message_content = True
bot = commands.Bot(command_prefix=commands.when_mentioned_or("!"), intents=intents)
@bot.slash_command()
async def generate_password(inter):
await inter.response.send_message("password")
@bot.event
async def on_ready():
print(f"Logged in as {bot.user} (ID: {bot.user.id})\n------")
bot.run("token")如何使执行程序的用户能够看到它,图像更好地描述它。
我不知道该怎么做。
发布于 2022-11-05 05:11:14
哦,我明白你的意思了,这些都是短暂的信息,你可以很容易地做到:
@bot.slash_command()
async def generate_password(interaction):
await interaction.response.send_message("password", ephemeral=True)https://stackoverflow.com/questions/74320407
复制相似问题