Documentation ¶
Index ¶
- Constants
- Variables
- func AddMemberToChannel(s *discordgo.Session, channelID string, userID string) error
- func AlexError(ctx ken.Context, title string) (err error)
- func Bold(s string) string
- func BoolCommandArg(name string, description string, required bool) *discordgo.ApplicationCommandOption
- func ChannelCommandArg(required bool) *discordgo.ApplicationCommandOption
- func Code(s string) string
- func CreateChannelWithinCategory(s *discordgo.Session, e *discordgo.InteractionCreate, categoryName string, ...) (*discordgo.Channel, error)
- func CreateHiddenChannel(s *discordgo.Session, e *discordgo.InteractionCreate, channelName string, ...) (*discordgo.Channel, error)
- func ErrorMessage(ctx ken.Context, title string, message string) (err error)
- func GetAdminRoleUsers(s *discordgo.Session, e *discordgo.InteractionCreate, adminRoles ...string) []string
- func GetChannelByName(s *discordgo.Session, e *discordgo.InteractionCreate, name string) (*discordgo.Channel, error)
- func GetGuildChannelCategory(s *discordgo.Session, e *discordgo.InteractionCreate, channelName string) (*discordgo.Channel, error)
- func Indent(s string) string
- func IntCommandArg(name string, description string, required bool) *discordgo.ApplicationCommandOption
- func IsAdminRole(ctx ken.Context, adminRoles ...string) bool
- func Italic(s string) string
- func MentionChannel(channelID string) string
- func MentionUser(userID string) string
- func NotAdminError(ctx ken.Context) (err error)
- func NotConfessionalError(ctx ken.Context, channelID string) (err error)
- func SilentSuccessfulMessage(ctx ken.Context, title string, message string) (err error)
- func SilentWarningMessage(ctx ken.Context, title string, message string) (err error)
- func Strike(s string) string
- func StringCommandArg(name string, description string, required bool) *discordgo.ApplicationCommandOption
- func SuccessfulMessage(ctx ken.Context, title string, message string) (err error)
- func Underline(s string) string
- func UpdatePinnedMessage(ctx ken.Context, channelID string, messageID string, content string) (*discordgo.Message, error)
- func UserCommandArg(required bool) *discordgo.ApplicationCommandOption
- func WarningMessage(ctx ken.Context, title string, message string) (err error)
- type Emoji
- type KenComponent
Constants ¶
View Source
const ( EmojiSuccess = Emoji("✅") EmojiError = Emoji("❌") EmojiWarning = Emoji("⚠️") EmojiInfo = Emoji("ℹ️") )
status emojis
View Source
const ( EmojiInventory = Emoji("🎒") EmojiAlignment = Emoji("⚖️") EmojiAbility = Emoji("💪") EmojiPerk = Emoji("➕") EmojiItem = Emoji("📦") EmojiStatus = Emoji("🔵") EmojiImmunity = Emoji("🛡️") EmojiEffect = Emoji("🌟") EmojiCoins = Emoji("💰") EmojiCoinBonus = Emoji("🔥") EmojiNote = Emoji("📝") EmojiAnyAbility = Emoji("🔮") EmojiLimit = Emoji("📏") EmojiDead = Emoji("💀") EmojiAlive = Emoji("👼") EmojiLuck = Emoji("🍀") EmojiRoll = Emoji("🎲") EmojiMail = Emoji("📬") )
inventory emojis
View Source
const ( ColorThemeRed = 0xff0000 ColorThemeGreen = 0x00ff00 ColorThemeBlue = 0x0000ff ColorThemeYellow = 0xffff00 ColorThemePurple = 0xff00ff ColorThemeOrange = 0xffa500 ColorThemePink = 0xffc0cb ColorThemeBlack = 0x000000 ColorThemeWhite = 0xffffff ColorThemeGrey = 0x808080 ColorThemeBrown = 0x8b4513 ColorThemeGold = 0xffd700 ColorThemeSilver = 0xc0c0c0 ColorThemeBronze = 0xcd7f32 ColorThemeCopper = 0xb87333 ColorThemePlatinum = 0xe5e4e2 ColorThemeDiamond = 0x00ffff ColorThemeEmerald = 0x50c878 ColorThemeRuby = 0xe0115f ColorThemeSapphire = 0x082567 ColorThemeAmethyst = 0x9966cc ColorThemeTopaz = 0xffc87c ColorThemePearl = 0xfdeef4 ColorThemeOpal = 0x9fd8cb ColorItemCommon = 0x00ff00 ColorItemUncommon = 0x0000ff ColorItemRare = 0x00008b ColorItemEpic = 0xff00ff ColorItemLegendary = 0xffc0cb ColorItemMythical = 0x800080 ColorItemUnique = 0xffa500 )
Hex colors / color themes
View Source
const ( McKusaID = "206268866714796032" BetraylGuildID = "1096058997477490861" )
ID of bot owner
View Source
const DebugCmd = ""
Temporary prefix for debugging commands.
Variables ¶
View Source
var AdminRoles = []string{
"Host",
"Co-Host",
"Bot Developer",
}
Current roles with eleveted permissions.
View Source
var ErrChannelNotFound = errors.New("channel not found")
Functions ¶
func AddMemberToChannel ¶
func BoolCommandArg ¶
func BoolCommandArg( name string, description string, required bool, ) *discordgo.ApplicationCommandOption
func ChannelCommandArg ¶
func ChannelCommandArg(required bool) *discordgo.ApplicationCommandOption
func CreateHiddenChannel ¶
func CreateHiddenChannel(s *discordgo.Session, e *discordgo.InteractionCreate, channelName string, whitelistIds ...string) (*discordgo.Channel, error)
Wrapper ontop of discordgo.GuildChannelCreate to create a hidden channel besided for the user and the admin
func ErrorMessage ¶
Send Pre-Formatted Error Message after slash command
func GetAdminRoleUsers ¶
func GetChannelByName ¶
func GetGuildChannelCategory ¶
func IntCommandArg ¶
func IntCommandArg( name string, description string, required bool, ) *discordgo.ApplicationCommandOption
func IsAdminRole ¶
Check if user who invoked command has required role
func MentionChannel ¶
func MentionUser ¶
func NotConfessionalError ¶
func SilentSuccessfulMessage ¶
func SilentWarningMessage ¶
func StringCommandArg ¶
func StringCommandArg( name string, description string, required bool, ) *discordgo.ApplicationCommandOption
func SuccessfulMessage ¶
Send Pre-Formatted Successful Message after slash command
func UpdatePinnedMessage ¶
func UserCommandArg ¶
func UserCommandArg(required bool) *discordgo.ApplicationCommandOption
Types ¶
type KenComponent ¶
type KenComponent struct { // How the button will look and be interacted with Button discordgo.MessageComponent // Actual logic for the button Handler func(ctx ken.ComponentContext) bool }
Wrapped for handling creation of components with ken
func NewKenComponent ¶
func NewKenComponent( btn discordgo.Button, handler func(ctx ken.ComponentContext) bool, ) *KenComponent
I'm not sure whats going on and at this point I'm too afraid to ask
Click to show internal directories.
Click to hide internal directories.