diff options
Diffstat (limited to 'bridge/discord')
-rw-r--r-- | bridge/discord/discord.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index e6f939e6..2d3e074b 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -62,10 +62,10 @@ func (b *Bdiscord) Connect() error { token = "Bot " + b.GetString("Token") } // if we have a User token, remove the `Bot` prefix - if strings.HasPrefix(b.GetString("Token"),"User ") { - token = strings.Replace(token,"Bot ","",-1) + if strings.HasPrefix(b.GetString("Token"), "User ") { + token = strings.Replace(token, "Bot ", "", -1) } - + b.c, err = discordgo.New(token) if err != nil { return err |