Python Discord.py嵌入踢,很难旋转此嵌入
我想打开这个按钮,我试了三次,但都没有成功。有人能帮我发送嵌入版本吗。 谢谢 代码:Python Discord.py嵌入踢,很难旋转此嵌入,python,Python,我想打开这个按钮,我试了三次,但都没有成功。有人能帮我发送嵌入版本吗。 谢谢 代码: 使用discord.Embed进行嵌入 替换 message = f"You have been kicked from {ctx.guild.name} for {reason}" await member.send(message) 与 如果您希望等待ctx.channel.send(f“{member}被踢了!”)部分也是嵌入的: embed2 = disco
使用
discord.Embed
进行嵌入
替换
message = f"You have been kicked from {ctx.guild.name} for {reason}"
await member.send(message)
与
如果您希望等待ctx.channel.send(f“{member}被踢了!”)
部分也是嵌入的:
embed2 = discord.Embed(
title=f"{member} is kicked!",
color=discord.Color.blue()
)
await ctx.channel.send(embed=embed)
您可以对错误消息使用类似的代码
embed = discord.Embed(
title="Kicked!",
description=f"You have been kicked from {ctx.guild.name} for {reason}!",
color=discord.Color.blue()
)
await member.send(embed=embed)
embed2 = discord.Embed(
title=f"{member} is kicked!",
color=discord.Color.blue()
)
await ctx.channel.send(embed=embed)