Skip to content
This repository was archived by the owner on Mar 5, 2023. It is now read-only.

Commit 622a7d8

Browse files
authored
chore(GuildEdit)!: use a pointer for GuildParams (bwmarrin#1228)
1 parent 576ecf0 commit 622a7d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restapi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ func (s *Session) GuildCreate(name string) (st *Guild, err error) {
553553
// GuildEdit edits a new Guild
554554
// guildID : The ID of a Guild
555555
// g : A GuildParams struct with the values Name, Region and VerificationLevel defined.
556-
func (s *Session) GuildEdit(guildID string, g GuildParams) (st *Guild, err error) {
556+
func (s *Session) GuildEdit(guildID string, g *GuildParams) (st *Guild, err error) {
557557

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

0 commit comments

Comments
 (0)