class PrivateParlorXT::Rank

Overview

Represents a Rank which a user may belong to

Included Modules

Defined in:

private-parlor-xt/ranks/rank.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, command_permissions : Set(PrivateParlorXT::CommandPermissions), message_permissions : Set(PrivateParlorXT::MessagePermissions)) #

Creates and instance of Rank


[View source]
def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def command_permissions : Set(CommandPermissions) #

The set of commands and types of commands members of this rank can use


[View source]
def message_permissions : Set(MessagePermissions) #

The set of message types members of this rank can send


[View source]
def name : String #

Name of this rank


[View source]