func (g *Guild) Role(id Snowflake) (role *Role, err error) {
	g.RLock()
	defer g.RUnlock()

	for _, role = range g.Roles {
		if role.ID == id {
			return
		}
	}

	err = errors.New("role not found in guild")
	return
}
// Role retrieve a role based on role id
Role retrieve a role based on role id
// Role retrieve a role based on role id
func (g *Guild) Role(id Snowflake) (role *Role, err error) {
	g.RLock()
	defer g.RUnlock()
	for _, role = range g.Roles {
		if role.ID == id {
			return
		}
	}
	err = errors.New("role not found in guild")
	return
}
func ( g * Guild ) Role ( id Snowflake ) ( role * Role , err error ) { g . RLock ( ) defer g . RUnlock ( ) for _ , role = range g . Roles { if role . ID == id { return } } err = errors . New ( " " ) return }
Role retrieve a role based on role id
Role retrieve a role based on role id