Function createChannel

  • Create a channel structure.

    Returns

    The created channel structure.

    Example

    createChannel(client, rawChannel);
    

    Parameters

    • client: Client

      The client the channel belongs to.

    • raw: APIChannel

      The raw data of the channel.

    • Optional cache: boolean

      Whether to cache the channel.

    Returns Channel