func DeleteGuildRole(client httd.Deleter, guildID, roleID Snowflake) (err error) {
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitGuildRoles(guildID),
		Endpoint:    endpoint.GuildRole(guildID, roleID),
	})
	if err != nil {
		return
	}

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

	return
}
// DeleteGuildRole [DELETE] Delete a guild role. Requires the 'MANAGE_ROLES' permission. Returns a 204 empty
//                          response on success. Fires a Guild Role Delete Gateway event.
// Endpoint                 /guilds/{guild.id}/roles/{role.id}
// Rate limiter             /guilds/{guild.id}/roles
// Discord documentation    https://discordapp.com/developers/docs/resources/guild#delete-guild-role
// Reviewed                 2018-08-18
// Comment                  -
DeleteGuildRole [DELETE] Delete a guild role. Requires the 'MANAGE_ROLES' permission. Returns a 204 empty
response on success. Fires a Guild Role Delete Gateway event.
// DeleteGuildRole [ DELETE ] Delete a guild role . Requires the ' MANAGE_ROLES ' permission . Returns a 204 empty // response on success . Fires a Guild Role Delete Gateway event . // Endpoint / guilds / { guild . id } / roles / { role . id } // Rate limiter / guilds / { guild . id } / roles // Discord documentation https : // discordapp . com / developers / docs / resources / guild#delete - guild - role // Reviewed 2018 - 08 - 18 // Comment -
func DeleteGuildRole(client httd.Deleter, guildID, roleID Snowflake) (err error) {
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitGuildRoles(guildID),
		Endpoint:    endpoint.GuildRole(guildID, roleID),
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusNoContent {
		msg := "Could not remove role. Do you have the MANAGE_ROLES permission?"
		err = errors.New(msg)
	}
	return
}
func DeleteGuildRole ( client httd . Deleter , guildID , roleID Snowflake ) ( err error ) { resp , _ , err := client . Delete ( & httd . Request { Ratelimiter : ratelimitGuildRoles ( guildID ) , Endpoint : endpoint . GuildRole ( guildID , roleID ) , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " err = errors . New ( msg ) } return }
DeleteGuildRole [DELETE] Delete a guild role.
DeleteGuildRole [ DELETE ] Delete a guild role .