@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