Why is this code not working, it prints a error that says that channelid is not defined

前端 未结 0 1496
失恋的感觉
失恋的感觉 2020-12-25 10:48

@client.command() async def get_channel(ctx, *, given_name="general_chat"): global channelid for channel in ctx.guild.channels: if channel.name == given_name: chan

相关标签:
回答
  • 消灭零回复
提交回复
热议问题