Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Confirmation ¶
type Confirmation struct {
ComPrefix string
}
func (*Confirmation) Apply ¶
func (r *Confirmation) Apply(session *discordgo.Session, action *RoleAction) (success bool, message string)
func (*Confirmation) Check ¶
func (r *Confirmation) Check(session *discordgo.Session, action *RoleAction) (success bool, message string)
type NoMultiples ¶
func (*NoMultiples) Apply ¶
func (r *NoMultiples) Apply(session *discordgo.Session, action *RoleAction) (success bool, message string)
func (*NoMultiples) Check ¶
func (r *NoMultiples) Check(session *discordgo.Session, action *RoleAction) (success bool, message string)
type RoleAction ¶
type RoleAction struct { Role *types.Role UserRank *types.UserServerRank Member *discordgo.Member Guild *discordgo.Guild Channel *discordgo.Channel OriginalMessage *discordgo.Message Action RoleActionType }
RoleAction Action being performed on the role
type RoleActionType ¶
type RoleActionType int
RoleActionType Type of action being performed on the role
const ( //RoleAdd Adding the role RoleAdd RoleActionType = 1 //RoleRemove Removing the role RoleRemove RoleActionType = 2 )
Click to show internal directories.
Click to hide internal directories.