1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-11-22 12:33:38 +00:00

API: rename Client.GuildVanityURL to Client.GuildVanityInvite

This commit is contained in:
mavolin 2020-11-21 19:11:31 +01:00 committed by diamondburned
parent 1d58ea57fb
commit a3aa53dcff

View file

@ -474,12 +474,12 @@ func (c *Client) GuildWidget(guildID discord.GuildID) (*discord.GuildWidget, err
EndpointGuilds+guildID.String()+"/widget.json") EndpointGuilds+guildID.String()+"/widget.json")
} }
// GuildVanityURL returns *Invite for guilds that have that feature enabled, // GuildVanityInvite returns the vanity invite for guilds that have that
// but only Code and Uses are filled. Code will be "" if a vanity url for the // feature enabled. Only Code and Uses are filled. Code will be "" if a vanity
// guild is not set. // url for the guild is not set.
// //
// Requires MANAGE_GUILD. // Requires MANAGE_GUILD.
func (c *Client) GuildVanityURL(guildID discord.GuildID) (*discord.Invite, error) { func (c *Client) GuildVanityInvite(guildID discord.GuildID) (*discord.Invite, error) {
var inv *discord.Invite var inv *discord.Invite
return inv, c.RequestJSON(&inv, "GET", EndpointGuilds+guildID.String()+"/vanity-url") return inv, c.RequestJSON(&inv, "GET", EndpointGuilds+guildID.String()+"/vanity-url")
} }