permissions

package
v0.0.0-...-f0c0f71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowDM

AllowDM returns true if the command comes from a DM and cmd.AllowDM is true.

func ComesFromDM

func ComesFromDM(s *discordgo.Session, m *discordgo.MessageCreate) (bool, error)

ComesFromDM returns true if a message comes from a DM channel

func MemberHasPermission

func MemberHasPermission(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool

MemberHasPermission checks if a member has the given permission

func MessageHasArguments

func MessageHasArguments(s *discordgo.Session, m *discordgo.MessageCreate, cmd *commands.WafferCommand) bool

MessageHasArguments returns true if the message has the correct arguments length.

func ValidAuthor

func ValidAuthor(s *discordgo.Session, m *discordgo.MessageCreate) bool

Author verified if the message author is a bot or not

func ValidPrefix

func ValidPrefix(s *discordgo.Session, m *discordgo.MessageCreate) bool

ValidPrefix returns true if the message starts with the prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL