5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 17:30:26 +00:00

Rename discord guild to server.

This commit is contained in:
Wim 2016-10-23 19:50:12 +02:00
parent d31e641bac
commit 1e84afbd90
2 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@ type Message struct {
type Protocol struct { type Protocol struct {
BindAddress string // mattermost, slack BindAddress string // mattermost, slack
Guild string // discord
IconURL string // mattermost, slack IconURL string // mattermost, slack
IgnoreNicks string // all protocols IgnoreNicks string // all protocols
Jid string // xmpp Jid string // xmpp

View File

@ -59,7 +59,7 @@ func (b *bdiscord) Connect() error {
} }
b.Nick = userinfo.Username b.Nick = userinfo.Username
for _, guild := range guilds { for _, guild := range guilds {
if guild.Name == b.Config.Guild { if guild.Name == b.Config.Server {
b.Channels, err = b.c.GuildChannels(guild.ID) b.Channels, err = b.c.GuildChannels(guild.ID)
if err != nil { if err != nil {
flog.Debugf("%#v", err) flog.Debugf("%#v", err)