From 8432330cb23b8ca1192584b274d710b246ffa50e Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 28 Nov 2018 23:50:40 +0100 Subject: [PATCH] Fix regression on using server ID (discord). #619 #617 --- bridge/discord/discord.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {