BotCommand Class

Properties

  • command: string
  • description: string

Methods

{
  "id": 647,
  "name": "BotCommand",
  "variant": "declaration",
  "kind": 128,
  "flags": {},
  "children": [
    {
      "id": 648,
      "name": "constructor",
      "variant": "declaration",
      "kind": 512,
      "flags": {},
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/BotCommand.ts",
          "line": 8,
          "character": 1
        }
      ],
      "signatures": [
        {
          "id": 649,
          "name": "new BotCommand",
          "variant": "signature",
          "kind": 16384,
          "flags": {},
          "sources": [
            {
              "fileName": "packages/tgkit/src/structures/BotCommand.ts",
              "line": 8,
              "character": 1
            }
          ],
          "parameters": [
            {
              "id": 650,
              "name": "__namedParameters",
              "variant": "param",
              "kind": 32768,
              "flags": {},
              "type": {
                "type": "reflection",
                "declaration": {
                  "id": 651,
                  "name": "__type",
                  "variant": "declaration",
                  "kind": 65536,
                  "flags": {},
                  "children": [
                    {
                      "id": 652,
                      "name": "command",
                      "variant": "declaration",
                      "kind": 1024,
                      "flags": {},
                      "sources": [
                        {
                          "fileName": "packages/tgkit/src/structures/BotCommand.ts",
                          "line": 8,
                          "character": 41
                        }
                      ],
                      "type": {
                        "type": "intrinsic",
                        "name": "string"
                      }
                    },
                    {
                      "id": 653,
                      "name": "description",
                      "variant": "declaration",
                      "kind": 1024,
                      "flags": {},
                      "sources": [
                        {
                          "fileName": "packages/tgkit/src/structures/BotCommand.ts",
                          "line": 8,
                          "character": 58
                        }
                      ],
                      "type": {
                        "type": "intrinsic",
                        "name": "string"
                      }
                    }
                  ],
                  "groups": [
                    {
                      "title": "Properties",
                      "children": [
                        652,
                        653
                      ]
                    }
                  ],
                  "sources": [
                    {
                      "fileName": "packages/tgkit/src/structures/BotCommand.ts",
                      "line": 8,
                      "character": 39
                    }
                  ]
                }
              }
            }
          ],
          "type": {
            "type": "reference",
            "target": 647,
            "name": "BotCommand",
            "package": "tgkit",
            "qualifiedName": "default"
          }
        }
      ]
    },
    {
      "id": 654,
      "name": "command",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores."
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/BotCommand.ts",
          "line": 3,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    },
    {
      "id": 655,
      "name": "description",
      "variant": "declaration",
      "kind": 1024,
      "flags": {},
      "comment": {
        "summary": [
          {
            "kind": "text",
            "text": "Description of the command; 1-256 characters."
          }
        ]
      },
      "sources": [
        {
          "fileName": "packages/tgkit/src/structures/BotCommand.ts",
          "line": 6,
          "character": 1
        }
      ],
      "type": {
        "type": "intrinsic",
        "name": "string"
      }
    }
  ],
  "groups": [
    {
      "title": "Constructors",
      "children": [
        648
      ]
    },
    {
      "title": "Properties",
      "children": [
        654,
        655
      ]
    }
  ],
  "sources": [
    {
      "fileName": "packages/tgkit/src/structures/BotCommand.ts",
      "line": 1,
      "character": 21
    }
  ]
}