Update comments for Godoc

This commit is contained in:
Dustin Pianalto
2020-04-06 19:39:11 -08:00
parent c051df9b2c
commit 20487406f9
+2 -2
View File
@@ -8,7 +8,7 @@ package disgoman
import "github.com/bwmarrin/discordgo"
// Returns a default Status Manager
// GetDefaultStatusManager returns a default Status Manager
func GetDefaultStatusManager() StatusManager {
return StatusManager{
[]string{
@@ -18,7 +18,7 @@ func GetDefaultStatusManager() StatusManager {
}, "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 {
if perms == 0 {
return true // If no permissions are required then just return true