Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Marshal will marshal the object into an io reader //uses the json marshaller Marshal = func(v interface{}) (io.Reader, error) { b, err := json.MarshalIndent(v, "", "\t") if err != nil { return nil, err } return bytes.NewReader(b), nil } //UnMarshal will unmarshal r into v UnMarshal = func(r io.Reader, v interface{}) error { return json.NewDecoder(r).Decode(v) } )
View Source
var ( //BotID the bot's ID BotID string )
Functions ¶
func BanUsr ¶
func BanUsr(s *discordgo.Session, m *discordgo.MessageCreate, args []string)
BanUsr bans a user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.