class Hamilton::Types::BotAccessSettings

Overview

This object describes the access settings of a bot.

Included Modules

Defined in:

types/bot_access_settings.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

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.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.