@hunteroi/discord-temp-channels
    Preparing search index...

    Class TempChannelsManager

    The temporary channels manager.

    TempChannelsManager

    Hierarchy

    • VoiceChannelsManager
      • TempChannelsManager
    Index

    Constructors

    Properties

    client: Client

    Methods

    • Protected

      Gets the parent channel either based on its ID or by looking for a match on the provided ID and its list of children.

      Parameters

      • channelId: string
      • OptionallookAsChild: boolean = false

      Returns undefined | ParentChannelData

      VoiceChannelsManager

    • Registers a parent channel. When a user joins a it, a child will be created and they will be moved to it.

      Parameters

      • channelId: string
      • Optionaloptions: ParentChannelOptions = ...

        [DRoom #${count}] ${name}, childFormatRegex: /^[DRoom #\d+]\s+.+/i, childPermissionOverwriteOption: { ManageChannels: true } }]

      Returns void

    • Unregisters a parent channel. When a user joins it, nothing will happen.

      Parameters

      • channelId: string

      Returns boolean