/*
Gets a permission value from a string. This should be used when accepting user input.
*/
Gets a permission value from a string. This should be used when accepting user input.
/ * Gets a permission value from a string . This should be used when accepting user input . * /
func GetPermissionFromString(s string) types.Permission {
	toCheck := strings.ToUpper(s)
	if toCheck == "ALL" {
		return types.PermAll
	} else if toCheck == "MOD" {
		return types.PermMod
	} else if toCheck == "GUILD OWNER" || toCheck == "GO" {
		return types.PermGuildOwner
	} else if toCheck == "NONE" {
		return types.PermNone
	} else if toCheck == "MASTER" {
		return types.PermMaster
	} else {
		return -1
	}
}
func GetPermissionFromString ( s string ) types . Permission { toCheck := strings . ToUpper ( s ) if toCheck == " " { return types . PermAll } else if toCheck == " " { return types . PermMod } else if toCheck == " " || toCheck == " " { return types . PermGuildOwner } else if toCheck == " " { return types . PermNone } else if toCheck == " " { return types . PermMaster } else { return - 1 } }
Gets a permission value from a string.
Gets a permission value from a string .