我试图让我的机器人使用discord.py邀请另一个机器人。对此有什么敬意吗?感谢所有帮助我的人。祝你过得愉快
@bot.command()
async def Invite(ctx, invite_link=None):
if invite_link == None:
await ctx.message.author.send(embed=discord.Embed(
title='**Syntax Error**',
description='**Please provide an invite Link!**',
color=discord.Color.red()
)
return
#Inviting function
#Doing stuff....
您只能使用从develeper portal获取的链接邀请discord bot到discord服务器。此外,只有服务器管理员/所有者才能邀请bot访问discord服务器。我希望这有帮助,并随时回复此消息以获得更多支持
相关问题 更多 >
编程相关推荐