Class Connection

Hierarchy

  • Connection

Constructors

Properties

developers: string[] = []
name: string
owners: string[] = []
permissionHandler: ((__namedParameters, __namedParameters, permissions, failCallback) => Promise<boolean>) = ...

Type declaration

    • (__namedParameters, __namedParameters, permissions, failCallback): Promise<boolean>
    • Parameters

      • __namedParameters: Connection
      • __namedParameters: {
            groupMetadata: GroupMetadata;
            isAdmin: boolean;
            isBotAdmin: boolean;
            isDeveloper: boolean;
            isOwner: boolean;
            m: ParsedMessage;
        }
        • groupMetadata: GroupMetadata
        • isAdmin: boolean
        • isBotAdmin: boolean
        • isDeveloper: boolean
        • isOwner: boolean
        • m: ParsedMessage
      • permissions: Permissions | Permissions[]
      • failCallback: ((name) => any)
          • (name): any
          • Parameters

            • name: string[]

            Returns any

      Returns Promise<boolean>

print: ((m, __namedParameters) => Promise<void>)

Type declaration

    • (m, __namedParameters): Promise<void>
    • Parameters

      Returns Promise<void>

sock: Helper
store: {}

Type declaration

    storeFolder: PathLike
    storePath: PathLike
    Logger: Logger<{
        level: string;
        prettyPrint: {
            ignore: string;
            levelFirst: true;
            translateTime: true;
        };
        transport: {
            target: string;
        };
    }> = Logger
    LoggerDebug: Logger<{
        level: string;
        prettyPrint: {
            ignore: string;
            levelFirst: true;
            translateTime: true;
        };
        transport: {
            target: string;
        };
    }> = LoggerDebug
    isModule: boolean = true

    Methods

    Generated using TypeDoc