Class: Vk::API::Groups::Methods::BanUser
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Groups::Methods::BanUser
- Defined in:
- lib/vk/api/groups/methods/ban_user.rb
Overview
Adds a user to a community blacklist.
Arguments collapse
-
#comment ⇒ String
Text of comment to ban.
-
#comment_visible ⇒ Boolean
'1' — text of comment will be visible to the user;; '0' — text of comment will be invisible to the user.
-
#end_date ⇒ Integer
Date (in Unix time) when the user will be removed from the blacklist.
-
#group_id ⇒ Integer
Community ID.
-
#reason ⇒ Integer
Reason for ban:; '1' — spam; '2' — verbal abuse; '3' — strong language; '4' — irrelevant messages; '0' — other (default).
-
#user_id ⇒ Integer
User ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Groups::Methods::BanUser
|
# File 'lib/vk/api/groups/methods/ban_user.rb', line 15
|
Instance Method Details
#comment ⇒ String
Returns Text of comment to ban.
36 |
# File 'lib/vk/api/groups/methods/ban_user.rb', line 36 attribute :comment, API::Types::Coercible::String.optional.default(nil) |
#comment_visible ⇒ Boolean
Returns '1' — text of comment will be visible to the user;; '0' — text of comment will be invisible to the user. ; By default: '0'.
38 |
# File 'lib/vk/api/groups/methods/ban_user.rb', line 38 attribute :comment_visible, API::Types::Form::Bool.optional.default(nil) |
#end_date ⇒ Integer
Returns Date (in Unix time) when the user will be removed from the blacklist.
32 |
# File 'lib/vk/api/groups/methods/ban_user.rb', line 32 attribute :end_date, API::Types::Coercible::Int.optional.default(nil) |
#group_id ⇒ Integer
Returns Community ID.
28 |
# File 'lib/vk/api/groups/methods/ban_user.rb', line 28 attribute :group_id, API::Types::Coercible::Int |