Fix crash when greetingMessage is used instead of serverGreetings
parent
b992b49c5c
commit
8930e5dde8
|
@ -136,6 +136,7 @@ if (config.guildGreetings && ! config.serverGreetings) {
|
|||
// already have something set up in serverGreetings. This retains backwards compatibility while allowing you to override
|
||||
// greetings for specific servers in serverGreetings.
|
||||
if (config.greetingMessage || config.greetingAttachment) {
|
||||
config.serverGreetings = config.serverGreetings || {};
|
||||
for (const guildId of config.mainServerId) {
|
||||
if (config.serverGreetings[guildId]) continue;
|
||||
config.serverGreetings[guildId] = {
|
||||
|
|
Loading…
Reference in New Issue