Skip to main content
Version: SDK-5.11.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
message : Success

Error cases

When a user other than the guild master makes an attempt
statusCode : 403
errorCode : ForbiddenException
message : Forbidden you are not guild master, You are not the guild master