mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-22 17:10:10 +00:00
Discord: Display channel on account creation form
This commit is contained in:
parent
ce8cdced4d
commit
0676b6c41f
@ -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
|
||||||
|
35
storage.go
35
storage.go
@ -105,23 +105,24 @@ type Invite struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Lang struct {
|
type Lang struct {
|
||||||
AdminPath string
|
AdminPath string
|
||||||
chosenAdminLang string
|
chosenAdminLang string
|
||||||
Admin adminLangs
|
Admin adminLangs
|
||||||
AdminJSON map[string]string
|
AdminJSON map[string]string
|
||||||
FormPath string
|
FormPath string
|
||||||
chosenFormLang string
|
chosenFormLang string
|
||||||
Form formLangs
|
Form formLangs
|
||||||
PasswordResetPath string
|
PasswordResetPath string
|
||||||
chosenPWRLang string
|
chosenPWRLang string
|
||||||
PasswordReset pwrLangs
|
PasswordReset pwrLangs
|
||||||
EmailPath string
|
EmailPath string
|
||||||
chosenEmailLang string
|
chosenEmailLang string
|
||||||
Email emailLangs
|
Email emailLangs
|
||||||
CommonPath string
|
CommonPath string
|
||||||
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…
Reference in New Issue
Block a user