diff options
Diffstat (limited to 'bridge/discord/discord.go')
-rw-r--r-- | bridge/discord/discord.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index 66c8134c..1ae655bf 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -95,12 +95,10 @@ func (b *Bdiscord) Connect() error { b.channelsMutex.Lock() for _, guild := range guilds { if guild.Name == serverName || guild.ID == serverName { - var chans []*discordgo.Channel - chans, err = b.c.GuildChannels(guild.ID) + b.channels, err = b.c.GuildChannels(guild.ID) if err != nil { break } - b.channels = filterChannelsByType(chans, discordgo.ChannelTypeGuildText, false) b.guildID = guild.ID guildFound = true } |