Update comments for Godoc
This commit is contained in:
parent
c051df9b2c
commit
20487406f9
4
utils.go
4
utils.go
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user