Function modeFromPrefix

  • Get a channel user mode from their prefix.

    Returns

    Mode for prefix symbol

    Parameters

    • prefixOrNick: string

      Prefix on its own (@, +, etc) or a nick @Diamond

    • supportedModes: Record<string, string>

      Object of channel modes { 'o': '@' }

    Returns string

Generated using TypeDoc