Discord: Display channel on account creation form

pull/102/head
Harvey Tindall 3 years ago
parent ce8cdced4d
commit 0676b6c41f
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -89,6 +89,7 @@ func (d *DiscordDaemon) run() {
d.serverChannelName = guild.Name d.serverChannelName = guild.Name
if channel := d.app.config.Section("discord").Key("channel").String(); channel != "" { if channel := d.app.config.Section("discord").Key("channel").String(); channel != "" {
d.channelName = channel d.channelName = channel
d.serverChannelName += "/" + channel
} }
defer d.bot.Close() defer d.bot.Close()
<-d.ShutdownChannel <-d.ShutdownChannel

@ -122,6 +122,7 @@ type Lang struct {
Common commonLangs Common commonLangs
SetupPath string SetupPath string
Setup setupLangs Setup setupLangs
// Telegram translations are also used for Discord bots (and likely future ones).
chosenTelegramLang string chosenTelegramLang string
TelegramPath string TelegramPath string
Telegram telegramLangs Telegram telegramLangs

Loading…
Cancel
Save