4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-27 18:09:26 +00:00

Remove WebhookURL support (discord)

This commit is contained in:
Qais Patankar
2020-11-30 05:57:16 +00:00
committed by Wim
parent 52e2f926f4
commit 0a17e21119
2 changed files with 15 additions and 9 deletions

View File

@ -111,7 +111,7 @@ func (t *Transmitter) HasWebhook(id string) bool {
}
// AddWebhook allows you to register a channel's webhook with the transmitter.
func (t *Transmitter) AddWebhook(channelID string, webhook *discordgo.Webhook) (replaced bool) {
func (t *Transmitter) AddWebhook(channelID string, webhook *discordgo.Webhook) bool {
t.Log.Debugf("Manually added webhook %#v to channel %#v", webhook.ID, channelID)
t.mutex.Lock()
defer t.mutex.Unlock()