func ModifyCurrentUserNick(client httd.Patcher, id Snowflake, params *ModifyCurrentUserNickParams) (nick string, err error) {
	resp, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitGuildMembers(id),
		Endpoint:    endpoint.GuildMembersMeNick(id),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	if resp.StatusCode != http.StatusOK {
		msg := "could not change nickname. Do you have the CHANGE_NICKNAME permission?"
		err = errors.New(msg)
		return
	}

	err = unmarshal(body, nick)
	return
}
// ModifyCurrentUserNick [PATCH]    Modifies the nickname of the current user in a guild. Returns a 200 with the
//                                  nickname on success. Fires a Guild Member Update Gateway event.
// Endpoint                         /guilds/{guild.id}/members/@me/nick
// Rate limiter                     /guilds/{guild.id}/members TODO: I don't know if this is correct
// Discord documentation            https://discordapp.com/developers/docs/resources/guild#modify-current-user-nick
// Reviewed                         2018-08-18
// Comment                          -
ModifyCurrentUserNick [PATCH]    Modifies the nickname of the current user in a guild. Returns a 200 with the
nickname on success. Fires a Guild Member Update Gateway event.
// ModifyCurrentUserNick [ PATCH ] Modifies the nickname of the current user in a guild . Returns a 200 with the // nickname on success . Fires a Guild Member Update Gateway event . // Endpoint / guilds / { guild . id } / members / @me / nick // Rate limiter / guilds / { guild . id } / members TODO : I don ' t know if this is correct // Discord documentation https : // discordapp . com / developers / docs / resources / guild#modify - current - user - nick // Reviewed 2018 - 08 - 18 // Comment -
func ModifyCurrentUserNick(client httd.Patcher, id Snowflake, params *ModifyCurrentUserNickParams) (nick string, err error) {
	resp, body, err := client.Patch(&httd.Request{
		Ratelimiter: ratelimitGuildMembers(id),
		Endpoint:    endpoint.GuildMembersMeNick(id),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	if resp.StatusCode != http.StatusOK {
		msg := "could not change nickname. Do you have the CHANGE_NICKNAME permission?"
		err = errors.New(msg)
		return
	}
	err = unmarshal(body, nick)
	return
}
func ModifyCurrentUserNick ( client httd . Patcher , id Snowflake , params * ModifyCurrentUserNickParams ) ( nick string , err error ) { resp , body , err := client . Patch ( & httd . Request { Ratelimiter : ratelimitGuildMembers ( id ) , Endpoint : endpoint . GuildMembersMeNick ( id ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } if resp . StatusCode != http . StatusOK { msg := " " err = errors . New ( msg ) return } err = unmarshal ( body , nick ) return }
ModifyCurrentUserNick [PATCH]    Modifies the nickname of the current user in a guild.
ModifyCurrentUserNick [ PATCH ] Modifies the nickname of the current user in a guild .