From f2e19e24a2000becd7287baade5324061362c231 Mon Sep 17 00:00:00 2001 From: rxdn <29165304+rxdn@users.noreply.github.com> Date: Mon, 30 May 2022 20:45:35 +0100 Subject: [PATCH] Up welcome message limit to 4096 chars --- app/http/endpoints/api/settings/updatesettings.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/http/endpoints/api/settings/updatesettings.go b/app/http/endpoints/api/settings/updatesettings.go index 9162578..22398e5 100644 --- a/app/http/endpoints/api/settings/updatesettings.go +++ b/app/http/endpoints/api/settings/updatesettings.go @@ -120,7 +120,7 @@ func (s *Settings) Validate(guildId uint64) error { }) group.Go(func() error { - if s.Settings.OverflowCategoryId != nil { + if s.Settings.OverflowCategoryId != nil { ch, ok := cache.Instance.GetChannel(*s.Settings.OverflowCategoryId) if !ok { return fmt.Errorf("Invalid overflow category") @@ -133,10 +133,10 @@ func (s *Settings) Validate(guildId uint64) error { if ch.Type != channel.ChannelTypeGuildCategory { return fmt.Errorf("Overflow category is not a category") } - } + } return nil - }) + }) return group.Wait() } @@ -191,7 +191,7 @@ func (s *Settings) updatePrefix(guildId uint64) bool { } func (s *Settings) updateWelcomeMessage(guildId uint64) bool { - if s.WelcomeMessaage == "" || len(s.WelcomeMessaage) > 1000 { + if s.WelcomeMessaage == "" || len(s.WelcomeMessaage) > 4096 { return false }