enum PrivateParlorXT::CommandPermissions

Overview

Commands and command types which can be given to a Rank to permit using certain commands

Commands permitted for each type:

Users: View the exact number of joined, left, and blacklisted users

Upvote: Upvote messages

Downvote: Downvote messages

Promote: Promote users to the same rank AND/OR lower ranks (Mutually exclusive with PromoteSame and PromoteLower)

PromoteLower: Promote users to lower ranks ONLY (Mutually exclusive with Promote and PromoteSame)

PromoteSame: Promote users to the same rank ONLY (Mutually exclusive with Promote and PromoteLower)

Demote: Demote users of lower rank

Sign: Sign a message with the user's username

TSign: Sign a message with a tripcode

Reveal: Privately reveal username to another user

Spoiler: Add or remove a spoiler from a media message using SpoilerCommand

Pin: Pin a message to the chat

Unpin: Unpin the a message or the recent message

Ranksay: Sign a message with rank name (Mutually exclusive with RanksayLower)

RanksayLower: Sign a message with rank name OR name of a lower rank IF that rank can ranksay (Mutually exclusive with Ranksay)

Warn: Warn a message and give the user a cooldown

Delete: Delete a message and give the user a cooldown

Uncooldown: Remove a cooldown from a user

Remove: Delete message without giving the user a cooldown

Purge: Delete all messages from recently blacklisted users

Blacklist: Ban a user from the chat

Whitelist: Invite a user to the chat (Applicable only if registration is closed)

MotdSet: Modify and set the MOTD/rules

RankedInfo: Get info (OID, karma, cooldown duration) of a another user

Unblacklist: Unban a user from the chat

Defined in:

private-parlor-xt/ranks/command_permissions.cr

Enum Members

Users = 0
Upvote = 1
Downvote = 2
Promote = 3
PromoteLower = 4
PromoteSame = 5
Demote = 6
Sign = 7
TSign = 8
Reveal = 9
Spoiler = 10
Pin = 11
Unpin = 12
Ranksay = 13
RanksayLower = 14
Warn = 15
Delete = 16
Uncooldown = 17
Remove = 18
Purge = 19
Blacklist = 20
Whitelist = 21
MotdSet = 22
RankedInfo = 23
Unblacklist = 24

Instance Method Summary

Instance Method Detail

def blacklist? #

[View source]
def delete? #

[View source]
def demote? #

[View source]
def downvote? #

[View source]
def motd_set? #

[View source]
def pin? #

[View source]
def promote? #

[View source]
def promote_lower? #

[View source]
def promote_same? #

[View source]
def purge? #

[View source]
def ranked_info? #

[View source]
def ranksay? #

[View source]
def ranksay_lower? #

[View source]
def remove? #

[View source]
def reveal? #

[View source]
def sign? #

[View source]
def spoiler? #

[View source]
def t_sign? #

[View source]
def unblacklist? #

[View source]
def uncooldown? #

[View source]
def unpin? #

[View source]
def upvote? #

[View source]
def users? #

[View source]
def warn? #

[View source]
def whitelist? #

[View source]