summaryrefslogtreecommitdiffstats
path: root/bridge/discord/discord.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-01-09 23:54:04 +0100
committerGitHub <noreply@github.com>2020-01-09 23:54:04 +0100
commit4c44515f9df8eb0eb67116f05cb50820d800f961 (patch)
tree313fea6f4c4be1b2388d48478021b43f174901c3 /bridge/discord/discord.go
parent9d84d6dd643c4017074e81465671cd9b25f9539a (diff)
downloadmatterbridge-msglm-4c44515f9df8eb0eb67116f05cb50820d800f961.tar.gz
matterbridge-msglm-4c44515f9df8eb0eb67116f05cb50820d800f961.tar.bz2
matterbridge-msglm-4c44515f9df8eb0eb67116f05cb50820d800f961.zip
Fix channel ID problem with multiple gateways (discord). Fixes #953 (#977)
Diffstat (limited to 'bridge/discord/discord.go')
-rw-r--r--bridge/discord/discord.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index bc93b957..7159b08e 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -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
}