Up welcome message limit to 4096 chars

This commit is contained in:
rxdn 2022-05-30 20:45:35 +01:00
parent 4dfa15e17d
commit f2e19e24a2

View File

@ -120,7 +120,7 @@ func (s *Settings) Validate(guildId uint64) error {
}) })
group.Go(func() error { group.Go(func() error {
if s.Settings.OverflowCategoryId != nil { if s.Settings.OverflowCategoryId != nil {
ch, ok := cache.Instance.GetChannel(*s.Settings.OverflowCategoryId) ch, ok := cache.Instance.GetChannel(*s.Settings.OverflowCategoryId)
if !ok { if !ok {
return fmt.Errorf("Invalid overflow category") return fmt.Errorf("Invalid overflow category")
@ -133,10 +133,10 @@ func (s *Settings) Validate(guildId uint64) error {
if ch.Type != channel.ChannelTypeGuildCategory { if ch.Type != channel.ChannelTypeGuildCategory {
return fmt.Errorf("Overflow category is not a category") return fmt.Errorf("Overflow category is not a category")
} }
} }
return nil return nil
}) })
return group.Wait() return group.Wait()
} }
@ -191,7 +191,7 @@ func (s *Settings) updatePrefix(guildId uint64) bool {
} }
func (s *Settings) updateWelcomeMessage(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 return false
} }