|
|
|
|
@ -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
|
|
|
|
|
|