4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-07-09 12:44:04 +00:00

Fix channel ID problem with multiple gateways (discord). Fixes #953 (#977)

This commit is contained in:
Wim
2020-01-09 23:54:04 +01:00
committed by GitHub
parent 9d84d6dd64
commit 4c44515f9d
3 changed files with 9 additions and 19 deletions

View File

@ -21,7 +21,6 @@ type Bdiscord struct {
c *discordgo.Session
nick string
useChannelID bool
guildID string
webhookID string
webhookToken string
@ -174,10 +173,6 @@ func (b *Bdiscord) JoinChannel(channel config.ChannelInfo) error {
defer b.channelsMutex.Unlock()
b.channelInfoMap[channel.ID] = &channel
idcheck := strings.Split(channel.Name, "ID:")
if len(idcheck) > 1 {
b.useChannelID = true
}
return nil
}