Update comments for Godoc

master
DustyP 6 years ago
parent c051df9b2c
commit 20487406f9

@ -8,7 +8,7 @@ package disgoman
import "github.com/bwmarrin/discordgo" import "github.com/bwmarrin/discordgo"
// Returns a default Status Manager // GetDefaultStatusManager returns a default Status Manager
func GetDefaultStatusManager() StatusManager { func GetDefaultStatusManager() StatusManager {
return StatusManager{ return StatusManager{
[]string{ []string{
@ -18,7 +18,7 @@ func GetDefaultStatusManager() StatusManager {
}, "10s"} }, "10s"}
} }
// Checks the channel and guild permissions to see if the member has the needed permissions // CheckPermissions checks the channel and guild permissions to see if the member has the needed permissions
func CheckPermissions(session *discordgo.Session, member discordgo.Member, channel discordgo.Channel, perms Permission) bool { func CheckPermissions(session *discordgo.Session, member discordgo.Member, channel discordgo.Channel, perms Permission) bool {
if perms == 0 { if perms == 0 {
return true // If no permissions are required then just return true return true // If no permissions are required then just return true

Loading…
Cancel
Save