Skip to main content
Version: SDK-6.0.0

WithdrawGuild

public BackndReturnObject WithdrawGuild();

Description

Leaves the currently joined guild.
The guild master can withdraw from a guild when there is no guild member.

Example

Synchronous

Backnd.Guild.WithdrawGuild();

Asynchronous

Backnd.Guild.WithdrawGuild((callback) => 
{
// Post-process
});

Return cases

Success cases

When the withdrawal is successful
statusCode : 204
message : Success

Error cases

When the user is the guild master but there is still a member in the guild
statusCode : 412
errorCode : PreconditionFailed
message : memberExist prerequisites are not met.

When a user who does not belong to a guild tries to leave the guild
statusCode : 412
errorCode : PreconditionFailed
message : subscribed guild prerequisites are not met.