diff options
author | Wim <wim@42.be> | 2018-11-28 23:50:40 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-28 23:50:40 +0100 |
commit | df02f51c564bd239ce7080cf8b9b687df90cb4ef (patch) | |
tree | b0a4143c8b76ea9db3dcf9cb7dfb1446d8d1c6f2 /bridge | |
parent | fc5e3a672862e53192dadfd9689dad766772aeea (diff) | |
download | matterbridge-msglm-df02f51c564bd239ce7080cf8b9b687df90cb4ef.tar.gz matterbridge-msglm-df02f51c564bd239ce7080cf8b9b687df90cb4ef.tar.bz2 matterbridge-msglm-df02f51c564bd239ce7080cf8b9b687df90cb4ef.zip |
Fix regression on using server ID (discord). #619 #617
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/discord/discord.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 00dd32b9..3a11a504 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -76,9 +76,10 @@ func (b *Bdiscord) Connect() error { if err != nil { return err } + serverName := strings.Replace(b.GetString("Server"), "ID:", "", -1) b.Nick = userinfo.Username for _, guild := range guilds { - if guild.Name == b.GetString("Server") { + if guild.Name == serverName || guild.ID == serverName { b.Channels, err = b.c.GuildChannels(guild.ID) b.guildID = guild.ID if err != nil { |