func AddGuildMemberRole(client httd.Puter, guildID, userID, roleID Snowflake) (err error) {
	resp, _, err := client.Put(&httd.Request{
		Ratelimiter: ratelimitGuildMembers(guildID),
		Endpoint:    endpoint.GuildMemberRole(guildID, userID, roleID),
	})
	if err != nil {
		return
	}

	if resp.StatusCode != http.StatusNoContent {
		msg := "Could not add role to user. Do you have the MANAGE_ROLES permission?"
		err = errors.New(msg)
	}

	return
}
// AddGuildMemberRole [PUT] Adds a role to a guild member. Requires the 'MANAGE_ROLES' permission. Returns a 204
//                          empty response on success. Fires a Guild Member Update Gateway event.
// Endpoint                 /guilds/{guild.id}/members/{user.id}/roles/{role.id}
// Rate limiter             /guilds/{guild.id}/members TODO: I don't know if this is correct
// Discord documentation    https://discordapp.com/developers/docs/resources/guild#add-guild-member-role
// Reviewed                 2018-08-18
// Comment                  -
AddGuildMemberRole [PUT] Adds a role to a guild member. Requires the 'MANAGE_ROLES' permission. Returns a 204
empty response on success. Fires a Guild Member Update Gateway event.
// AddGuildMemberRole [ PUT ] Adds a role to a guild member . Requires the ' MANAGE_ROLES ' permission . Returns a 204 // empty response on success . Fires a Guild Member Update Gateway event . // Endpoint / guilds / { guild . id } / members / { user . id } / roles / { role . id } // Rate limiter / guilds / { guild . id } / members TODO : I don ' t know if this is correct // Discord documentation https : // discordapp . com / developers / docs / resources / guild#add - guild - member - role // Reviewed 2018 - 08 - 18 // Comment -
func AddGuildMemberRole(client httd.Puter, guildID, userID, roleID Snowflake) (err error) {
	resp, _, err := client.Put(&httd.Request{
		Ratelimiter: ratelimitGuildMembers(guildID),
		Endpoint:    endpoint.GuildMemberRole(guildID, userID, roleID),
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusNoContent {
		msg := "Could not add role to user. Do you have the MANAGE_ROLES permission?"
		err = errors.New(msg)
	}
	return
}
func AddGuildMemberRole ( client httd . Puter , guildID , userID , roleID Snowflake ) ( err error ) { resp , _ , err := client . Put ( & httd . Request { Ratelimiter : ratelimitGuildMembers ( guildID ) , Endpoint : endpoint . GuildMemberRole ( guildID , userID , roleID ) , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " err = errors . New ( msg ) } return }
AddGuildMemberRole [PUT] Adds a role to a guild member.
AddGuildMemberRole [ PUT ] Adds a role to a guild member .