Skip to content

Commit

Permalink
chore(GuildEdit)!: use a pointer for GuildParams (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
FedorLap2006 committed Aug 17, 2022
1 parent 576ecf0 commit 622a7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ func (s *Session) GuildCreate(name string) (st *Guild, err error) {
// GuildEdit edits a new Guild
// guildID : The ID of a Guild
// g : A GuildParams struct with the values Name, Region and VerificationLevel defined.
func (s *Session) GuildEdit(guildID string, g GuildParams) (st *Guild, err error) {
func (s *Session) GuildEdit(guildID string, g *GuildParams) (st *Guild, err error) {

// Bounds checking for VerificationLevel, interval: [0, 4]
if g.VerificationLevel != nil {
Expand Down

0 comments on commit 622a7d8

Please sign in to comment.