通常,您执行以下命令:!public #general 1 1 Discord Nitro https://discord.gg/...
,但是我很难区分奖金和链接!这是我想出的:
@client.command()
async def public(ctx, channel:discord.TextChannel, winners: int, time: int, *prize, link):
embed = discord.Embed(
title = f"**Giving Away {prize}**",
description = f"React with ? to enter! \n **{winners}** winner \n \n ? Must be in **{link}** to enter!", color=0xf9c900)
await ctx.send(embed=embed)
答案 0 :(得分:0)
从*
中删除*prize
,然后在运行命令时将奖金放在引号中,所以:
!public #general 1 1 "Discord Nitro" https://discord.gg/...