Documentation ¶
Index ¶
- Constants
- Variables
- func Fold(s string) string
- func IsMatchingNick(nick string, m *discordgo.Member) bool
- type BotHelper
- func (h *BotHelper) CategoryByArgument(gid, arg string) (*discordgo.Channel, error)
- func (h *BotHelper) CategoryById(id string) (*discordgo.Channel, error)
- func (h *BotHelper) CategoryByName(gid, name string) (*discordgo.Channel, error)
- func (h *BotHelper) ChannelByArgument(gid, arg string) (*discordgo.Channel, error)
- func (h *BotHelper) ChannelById(id string) (*discordgo.Channel, error)
- func (h *BotHelper) ChannelByName(gid, name string) (*discordgo.Channel, error)
- func (h *BotHelper) GuildById(id string) (*discordgo.Guild, error)
- func (h *BotHelper) Me() *discordgo.User
- func (h *BotHelper) MemberByArgument(gid, arg string) (*discordgo.Member, error)
- func (h *BotHelper) MemberById(gid, uid string) (*discordgo.Member, error)
- func (h *BotHelper) MemberByName(gid, name string) (*discordgo.Member, error)
- func (h *BotHelper) RoleByArgument(gid, arg string) (*discordgo.Role, error)
- func (h *BotHelper) RoleById(gid, rid string) (*discordgo.Role, error)
- func (h *BotHelper) RoleByName(gid, name string) (*discordgo.Role, error)
Constants ¶
View Source
const (
MaxMembersPerFetch = 1000
)
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrManyFound = errors.New("many found") )
Functions ¶
Types ¶
type BotHelper ¶
func (*BotHelper) CategoryByArgument ¶ added in v0.3.0
func (*BotHelper) CategoryById ¶ added in v0.3.0
func (*BotHelper) CategoryByName ¶ added in v0.3.0
func (*BotHelper) ChannelByArgument ¶
func (*BotHelper) ChannelById ¶
func (*BotHelper) ChannelByName ¶
func (*BotHelper) MemberByArgument ¶
func (*BotHelper) MemberById ¶
func (*BotHelper) MemberByName ¶
func (*BotHelper) RoleByArgument ¶
Click to show internal directories.
Click to hide internal directories.