Discord.py 因此,我试图创建一个赠品机器人命令,但似乎我可以';我得不到链接

Discord.py 因此,我试图创建一个赠品机器人命令,但似乎我可以';我得不到链接,discord.py,Discord.py,因此,通常执行以下命令:!公共#一般1不和谐硝基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}**&quo

因此,通常执行以下命令:
!公共#一般1不和谐硝基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 drop the 
*
from
*prize
and just put the prize in quotes when you run your command, so:

!public #general 1 1 "Discord Nitro" https://discord.gg/...
@client.command()
异步def public(ctx,频道:discord.TextChannel,获奖者:int,时间:int,*奖品,链接):
嵌入=不和谐。嵌入(
title=f“**赠送{prize}**”,

description=f“React with从
*prize
中删除
*
,运行命令时只需将奖品放在引号中,因此:


有没有办法不用它们?我唯一能想到的另一个选择是切换奖品和链接的位置,所以
async def public(ctx,channel:discord.TextChannel,winners:int,time:int,link:str,*,prize:str):
discord.py无法判断一个字符串何时开始,下一个字符串何时结束,因为命令参数是以空格分隔的