getVanityUrl

open suspend fun getVanityUrl(): String?(source)

Requests to get the vanity url of this guild, if present.

This function is not resolvable through cache and will always use the RestClient instead. Request exceptions containing the JsonErrorCode.InviteCodeInvalidOrTaken reason will be transformed into null instead.

Throws

if something went wrong during the request.