ChatMemberRestricted Class
extends BaseRepresents a chat member that is under certain restrictions in the chat. Supergroups only.
Properties
client: Client
isMember: boolean
permissions: ChatMemberRestrictedPermissions
restrictedUntil:
status: ChatMemberStatus
user: User
Methods
{ "id": 1212, "name": "ChatMemberRestricted", "variant": "declaration", "kind": 128, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Represents a chat member that is under certain restrictions in the chat. Supergroups only." } ] }, "children": [ { "id": 1213, "name": "constructor", "variant": "declaration", "kind": 512, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMemberRestricted.ts", "line": 18, "character": 1 } ], "signatures": [ { "id": 1214, "name": "new ChatMemberRestricted", "variant": "signature", "kind": 16384, "flags": {}, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMemberRestricted.ts", "line": 18, "character": 1 } ], "parameters": [ { "id": 1215, "name": "client", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" } }, { "id": 1216, "name": "data", "variant": "param", "kind": 32768, "flags": {}, "type": { "type": "intrinsic", "name": "any" } } ], "type": { "type": "reference", "target": 1212, "name": "ChatMemberResticted", "package": "tgkit", "qualifiedName": "default" }, "overwrites": { "type": "reference", "target": 1159, "name": "default.constructor" } } ], "overwrites": { "type": "reference", "target": 1158, "name": "default.constructor" } }, { "id": 1222, "name": "client", "variant": "declaration", "kind": 1024, "flags": { "isInherited": true }, "sources": [ { "fileName": "packages/tgkit/src/structures/Base.ts", "line": 4, "character": 1 } ], "type": { "type": "reference", "target": 1, "name": "Client", "package": "tgkit", "qualifiedName": "default" }, "inheritedFrom": { "type": "reference", "target": 1164, "name": "default.client" } }, { "id": 1217, "name": "isMember", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "*true*, if the user is a member of the chat at the moment of the request" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMemberRestricted.ts", "line": 9, "character": 1 } ], "type": { "type": "intrinsic", "name": "boolean" } }, { "id": 1218, "name": "permissions", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Chat member permissions" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMemberRestricted.ts", "line": 12, "character": 1 } ], "type": { "type": "reference", "target": 2657, "name": "ChatMemberRestrictedPermissions", "package": "tgkit" } }, { "id": 1219, "name": "restrictedUntil", "variant": "declaration", "kind": 1024, "flags": {}, "comment": { "summary": [ { "kind": "text", "text": "Date when restrictions will be lifted for this user. If *null*, then the user is restricted forever" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMemberRestricted.ts", "line": 15, "character": 1 } ], "type": { "type": "union", "types": [ { "type": "literal", "value": null }, { "type": "reference", "target": { "sourceFileName": "node_modules/.pnpm/typescript@5.5.3/node_modules/typescript/lib/lib.es5.d.ts", "qualifiedName": "Date" }, "name": "Date", "package": "typescript" } ] } }, { "id": 1220, "name": "status", "variant": "declaration", "kind": 1024, "flags": { "isInherited": true }, "comment": { "summary": [ { "kind": "text", "text": "The member's status in the chat" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMember.ts", "line": 10, "character": 1 } ], "type": { "type": "reference", "target": 2009, "name": "ChatMemberStatus", "package": "tgkit" }, "inheritedFrom": { "type": "reference", "target": 1162, "name": "default.status" } }, { "id": 1221, "name": "user", "variant": "declaration", "kind": 1024, "flags": { "isInherited": true }, "comment": { "summary": [ { "kind": "text", "text": "Information about the user" } ] }, "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMember.ts", "line": 13, "character": 1 } ], "type": { "type": "reference", "target": 1888, "name": "User", "package": "tgkit", "qualifiedName": "default" }, "inheritedFrom": { "type": "reference", "target": 1163, "name": "default.user" } } ], "groups": [ { "title": "Constructors", "children": [ 1213 ] }, { "title": "Properties", "children": [ 1222, 1217, 1218, 1219, 1220, 1221 ] } ], "sources": [ { "fileName": "packages/tgkit/src/structures/ChatMemberRestricted.ts", "line": 7, "character": 21 } ], "extendedTypes": [ { "type": "reference", "target": 1157, "name": "default", "package": "tgkit" } ] }