forked from pothtonswer/discordmuffin
chore(GuildEdit)!: use a pointer for GuildParams (#1228)
This commit is contained in:
parent
576ecf0003
commit
622a7d8902
1 changed files with 1 additions and 1 deletions
|
@ -553,7 +553,7 @@ func (s *Session) GuildCreate(name string) (st *Guild, err error) {
|
||||||
// GuildEdit edits a new Guild
|
// GuildEdit edits a new Guild
|
||||||
// guildID : The ID of a Guild
|
// guildID : The ID of a Guild
|
||||||
// g : A GuildParams struct with the values Name, Region and VerificationLevel defined.
|
// 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]
|
// Bounds checking for VerificationLevel, interval: [0, 4]
|
||||||
if g.VerificationLevel != nil {
|
if g.VerificationLevel != nil {
|
||||||
|
|
Loading…
Reference in a new issue