func (c *Client) StopPulsating(serviceID uint8) {
	c.pulseMutex.RLock()
	pulsating := c.pulsating > 0 && c.pulsating == int(serviceID)
	c.pulseMutex.RUnlock()

	c.pulseMutex.Lock()
	if pulsating {
		c.pulseMutex.Unlock()
		return
	}

	c.pulsating = -1
	c.pulseMutex.Unlock()
}
// StopPulsating stops sending heartbeats to Discord
StopPulsating stops sending heartbeats to Discord
// StopPulsating stops sending heartbeats to Discord
func (c *Client) StopPulsating(serviceID uint8) {
	c.pulseMutex.RLock()
	pulsating := c.pulsating > 0 && c.pulsating == int(serviceID)
	c.pulseMutex.RUnlock()
	c.pulseMutex.Lock()
	if pulsating {
		c.pulseMutex.Unlock()
		return
	}
	c.pulsating = -1
	c.pulseMutex.Unlock()
}
func ( c * Client ) StopPulsating ( serviceID uint8 ) { c . pulseMutex . RLock ( ) pulsating := c . pulsating > 0 && c . pulsating == int ( serviceID ) c . pulseMutex . RUnlock ( ) c . pulseMutex . Lock ( ) if pulsating { c . pulseMutex . Unlock ( ) return } c . pulsating = - 1 c . pulseMutex . Unlock ( ) }
StopPulsating stops sending heartbeats to Discord
StopPulsating stops sending heartbeats to Discord