class
Hamilton::Types::BotAccessSettings
- Hamilton::Types::BotAccessSettings
- Reference
- Object
Overview
This object describes the access settings of a bot.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/bot_access_settings.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#added_users : Array(Hamilton::Types::User) | Nil
The list of other users who have access to the bot if the access is restricted.
-
#added_users=(added_users : Array(Hamilton::Types::User) | Nil)
The list of other users who have access to the bot if the access is restricted.
-
#is_access_restricted : Bool
True, if only selected users can access the bot.
-
#is_access_restricted=(is_access_restricted : Bool)
True, if only selected users can access the bot.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
def added_users : Array(Hamilton::Types::User) | Nil
#
The list of other users who have access to the bot if the access is restricted.
def added_users=(added_users : Array(Hamilton::Types::User) | Nil)
#
The list of other users who have access to the bot if the access is restricted.
def is_access_restricted : Bool
#
True, if only selected users can access the bot. The bot's owner can always access it.
def is_access_restricted=(is_access_restricted : Bool)
#
True, if only selected users can access the bot. The bot's owner can always access it.