func DeleteChannelPermission(client httd.Deleter, channelID, overwriteID Snowflake) (err error) {
	if channelID.Empty() {
		return errors.New("channelID must be set to target the correct channel")
	}
	if overwriteID.Empty() {
		return errors.New("overwriteID must be set to target the specific channel permissions")
	}

	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannelPermissions(channelID),
		Endpoint:    endpoint.ChannelPermission(channelID, overwriteID),
	})
	if err != nil {
		return
	}

	if resp.StatusCode != http.StatusNoContent {
		msg := "unexpected http response code. Got " + resp.Status + ", wants " + http.StatusText(http.StatusNoContent)
		err = errors.New(msg)
	}
	return
}
// DeleteChannelPermission [DELETE]  Delete a channel permission overwrite for a user or role in a channel.
//                                   Only usable for guild channels. Requires the 'MANAGE_ROLES' permission.
//                                   Returns a 204 empty response on success. For more information about
//                                   permissions, see permissions:
//                                   https://discordapp.com/developers/docs/topics/permissions#permissions
// Endpoint                          /channels/{channel.id}/permissions/{overwrite.id}
// Rate limiter [MAJOR]              /channels/{channel.id}/permissions
// Discord documentation             https://discordapp.com/developers/docs/resources/channel#delete-channel-permission
// Reviewed                          2018-06-07
// Comment                           -
DeleteChannelPermission [DELETE]  Delete a channel permission overwrite for a user or role in a channel.
Only usable for guild channels. Requires the 'MANAGE_ROLES' permission.
Returns a 204 empty response on success.
// DeleteChannelPermission [ DELETE ] Delete a channel permission overwrite for a user or role in a channel . // Only usable for guild channels . Requires the ' MANAGE_ROLES ' permission . // Returns a 204 empty response on success . For more information about // permissions see permissions : // https : // discordapp . com / developers / docs / topics / permissions#permissions // Endpoint / channels / { channel . id } / permissions / { overwrite . id } // Rate limiter [ MAJOR ] / channels / { channel . id } / permissions // Discord documentation https : // discordapp . com / developers / docs / resources / channel#delete - channel - permission // Reviewed 2018 - 06 - 07 // Comment -
func DeleteChannelPermission(client httd.Deleter, channelID, overwriteID Snowflake) (err error) {
	if channelID.Empty() {
		return errors.New("channelID must be set to target the correct channel")
	}
	if overwriteID.Empty() {
		return errors.New("overwriteID must be set to target the specific channel permissions")
	}
	resp, _, err := client.Delete(&httd.Request{
		Ratelimiter: ratelimitChannelPermissions(channelID),
		Endpoint:    endpoint.ChannelPermission(channelID, overwriteID),
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusNoContent {
		msg := "unexpected http response code. Got " + resp.Status + ", wants " + http.StatusText(http.StatusNoContent)
		err = errors.New(msg)
	}
	return
}
func DeleteChannelPermission ( client httd . Deleter , channelID , overwriteID Snowflake ) ( err error ) { if channelID . Empty ( ) { return errors . New ( " " ) } if overwriteID . Empty ( ) { return errors . New ( " " ) } resp , _ , err := client . Delete ( & httd . Request { Ratelimiter : ratelimitChannelPermissions ( channelID ) , Endpoint : endpoint . ChannelPermission ( channelID , overwriteID ) , } ) if err != nil { return } if resp . StatusCode != http . StatusNoContent { msg := " " + resp . Status + " " + http . StatusText ( http . StatusNoContent ) err = errors . New ( msg ) } return }
DeleteChannelPermission [DELETE]  Delete a channel permission overwrite for a user or role in a channel.
DeleteChannelPermission [ DELETE ] Delete a channel permission overwrite for a user or role in a channel .