discord

package
v0.0.0-...-fb5ee28 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInteractionResponse

func CreateInteractionResponse(description string, color int, flags uint64) *discordgo.InteractionResponse

func DeleteMessage

func DeleteMessage(channelId, messageId string) error

func FindChanelFromArgs

func FindChanelFromArgs(args []string) (string, error)

func FindEmojiFromRawEmojiId

func FindEmojiFromRawEmojiId(customEmojis []*discordgo.Emoji, reference string) *discordgo.Emoji

func FindRoleFromRawRoleId

func FindRoleFromRawRoleId(roles []*discordgo.Role, reference string) *discordgo.Role

func GetAllUsersFromGuild

func GetAllUsersFromGuild(guildId string) ([]*discordgo.Member, error)

func GetChannelDataFromRawId

func GetChannelDataFromRawId(channelId string) (*discordgo.Channel, error)

func GetReactionFromRawReactionId

func GetReactionFromRawReactionId(reactionId string) string

func GetReactionIdFromRawReactionId

func GetReactionIdFromRawReactionId(reactionId string) string

func GetRoleFromRawRoleId

func GetRoleFromRawRoleId(roleId string) string

func IsMissingAccessError

func IsMissingAccessError(err error) bool

func RespondErrorInteraction

func RespondErrorInteraction(session *discordgo.Session, interaction *discordgo.Interaction, errorDescription string)

func RespondErrorInteractionToUserOnly

func RespondErrorInteractionToUserOnly(session *discordgo.Session, interaction *discordgo.Interaction, errorDescription string)

func RespondInteraction

func RespondInteraction(session *discordgo.Session, interaction *discordgo.Interaction, description string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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