【发布时间】:2019-10-13 10:58:14
【问题描述】:
我在我的机器人上设置了一个命令以从服务器中提取有效邀请,但似乎无法将结果转换为 url。
我尝试将 {invites} 转换为 {invites.url},但它似乎不起作用
@commands.is_owner()
@commands.command()
async def fi(self, ctx, id: int):
server = self.bot.get_guild(id)
invites = await server.invites()
fetching = await ctx.send("Fetching Invites...")
await fetching.edit(content=f"All Active Invites Codes: \n {invites}")
await asyncio.sleep(8)
await fetching.delete()
# Fetches invite codes
【问题讨论】: