From 792b209680468e54d4fc96d1c4725f1af0d5385d Mon Sep 17 00:00:00 2001 From: Julian Y Date: Sun, 4 Aug 2019 01:28:49 -0700 Subject: [PATCH] Modify GuildEdit bounds check --- restapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restapi.go b/restapi.go index 6023cc3..503ac14 100644 --- a/restapi.go +++ b/restapi.go @@ -617,10 +617,10 @@ func (s *Session) GuildCreate(name string) (st *Guild, err error) { // g : A GuildParams struct with the values Name, Region and VerificationLevel defined. func (s *Session) GuildEdit(guildID string, g GuildParams) (st *Guild, err error) { - // Bounds checking for VerificationLevel, interval: [0, 3] + // Bounds checking for VerificationLevel, interval: [0, 4] if g.VerificationLevel != nil { val := *g.VerificationLevel - if val < 0 || val > 3 { + if val < 0 || val > 4 { err = ErrVerificationLevelBounds return }