async def get_channel(client, channel):
    """Return channel as Discord object.

    Args:
        client (dc.Client): Discord Client object.
        channel (str, optional): Channel name.

    Raises:
        ValueError: if value of channel is incorrect.

    Returns:
        dc channel object: discord channel
    """
    for c in client.get_all_channels():
        if c.name == channel:
            return c
    raise ValueError(f'Unknown channel {channel}')