Documentation ¶
Overview ¶
Extensions and additions to discordGo.
Anything that adds functionality to discordGo specifically should go in this package.
Index ¶
- Constants
- func FindPermissionByRoleID(overwrites []*discordgo.PermissionOverwrite, toFind string) (*discordgo.PermissionOverwrite, bool)
- func FindRoleById(roles []*discordgo.Role, toFind string) *discordgo.Role
- func FindRoleByName(roles []*discordgo.Role, toFind string) *discordgo.Role
- func GetChannel(channelUid string, session *discordgo.Session) (channel *discordgo.Channel, err error)
- func GetCurrentRolePermissionsForChannel(session *discordgo.Session, channelUID string, roleUID string) (*discordgo.PermissionOverwrite, error)
- func GetEveryoneRoleForServer(session *discordgo.Session, serverID int) *discordgo.Role
- func GetGuild(guildUid string, session *discordgo.Session) (*discordgo.Guild, error)
- func GetMember(memberUid string, guildUid string, session *discordgo.Session) (member *discordgo.Member, err error)
- func GetReactionByName(message *discordgo.Message, reactionName string) *discordgo.MessageReactions
- func RetrieveBasePermissions(session *discordgo.Session, channel *discordgo.Channel, role *discordgo.Role, ...) map[int]bool
Constants ¶
View Source
const MaxMessageLength = 2000
Variables ¶
This section is empty.
Functions ¶
func FindPermissionByRoleID ¶
func FindPermissionByRoleID(overwrites []*discordgo.PermissionOverwrite, toFind string) (*discordgo.PermissionOverwrite, bool)
func GetChannel ¶
func GetReactionByName ¶
func GetReactionByName(message *discordgo.Message, reactionName string) *discordgo.MessageReactions
Gets a reaction from a message based on it's emoji name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.