ToggleCommunityMemberIsBanned class
Bans or unbans a member of a community; requires can_ban_members administrator right in the community. A banned member is banned in all chats of the community. Administrators of the community can be banned only by the owner of the community and administrators who can edit administrator rights of the member. If an owner of a chat in the community is banned, then the chat is removed from the community; in this case, can_edit_chat_list administrator right is also required Returns Ok
- Inheritance
-
- Object
- TdFunction
- ToggleCommunityMemberIsBanned
- Available extensions
- Annotations
-
- @immutable
Constructors
- ToggleCommunityMemberIsBanned({required int communityId, required MessageSender memberId, required bool isBanned})
-
const
Properties
- communityId → int
-
communityId Identifier of the community
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isBanned → bool
-
isBanned Pass true to ban the member; pass false to unban the member
final
- memberId → MessageSender
-
memberId Identifier of the member to ban or unban
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{int? communityId, MessageSender? memberId, bool? isBanned}) → ToggleCommunityMemberIsBanned -
Available on ToggleCommunityMemberIsBanned, provided by the ToggleCommunityMemberIsBannedExtensions extension
-
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- constructor → const String