【发布时间】:2022-10-30 23:14:21
【问题描述】:
如何使只有您可以在 Discord py 中看到此消息?
我想在 discord.py 中使用“只有你可以看到这条消息”来让 discord bot 回复用户
import discord
from discord.ext import commands
client = commands.Bot(
help_command=None,
command_prefix=">"
)
@client.event
async def on_ready():
print('Connection as {0.user}'.format(client))
@client.command()
async def Hi(ctx):
await ctx.reply('Hello')
client.run('token')
【问题讨论】:
-
将
ephemeral=True添加到您的send_message()。
标签: python discord.py