class PrivateParlorXT::Rank
- PrivateParlorXT::Rank
- Reference
- Object
Overview
Represents a Rank
which a user may belong to
Included Modules
- YAML::Serializable
Defined in:
private-parlor-xt/ranks/rank.crConstructors
-
.new(name : String, command_permissions : Set(PrivateParlorXT::CommandPermissions), message_permissions : Set(PrivateParlorXT::MessagePermissions))
Creates and instance of
Rank
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Instance Method Summary
-
#command_permissions : Set(CommandPermissions)
The set of commands and types of commands members of this rank can use
-
#message_permissions : Set(MessagePermissions)
The set of message types members of this rank can send
-
#name : String
Name of this rank
Constructor Detail
def self.new(name : String, command_permissions : Set(PrivateParlorXT::CommandPermissions), message_permissions : Set(PrivateParlorXT::MessagePermissions))
#
Creates and instance of Rank
Instance Method Detail
def command_permissions : Set(CommandPermissions)
#
The set of commands and types of commands members of this rank can use
def message_permissions : Set(MessagePermissions)
#
The set of message types members of this rank can send