Skip to main content
Version: 5.9.6

UpdateCountryCodeV3

public BackendReturnObject UpdateCountryCodeV3(CountryCode code);

Parameter

ValueTypeDescription
codeCountryCodeCountry code provided by BACKND

Description

Modifies the guild's country code.

  • The country code can only be modified in Guild v3.
  • Only the guild master can modify the country code.
  • The country code information of the guild can be looked up based on the countryCode key value in the result value of GetMyGuildInfoV3.

Example

Synchronous

// Sets the country code to South Korea
Backend.Guild.UpdateCountryCodeV3(CountryCode.SouthKorea);

Asynchronous

// Sets the country code to South Korea
Backend.Guild.UpdateCountryCodeV3(CountryCode.SouthKorea, (callback) =>
{
// Post-process
});

SendQueue

// Sets the country code to South Korea
SendQueue.Enqueue(Backend.Guild.UpdateCountryCodeV3, CountryCode.SouthKorea, (callback) =>
{
// Post-process
});

Return cases

Success cases

When the change is successful
statusCode : 204

Error cases

When a user other than the guild master makes an attempt
statusCode : 403
errorCode : ForbiddenException