DeleteRandomData
public BackendReturnObject DeleteRandomData(RandomType randomType, string uuid);
Description
Deletes my data that exists in the random lookup group.
In the case of guilds, all guild members may execute the method.
Even if your data does not exist in the group, the result is returned as a success without errors.
Parameters
Value | Type | Description |
---|---|---|
randomType | RandomType | Random lookup type (RandomType.User refers to the user and RandomType.Guild refers to the guild) |
uuid | string | Uuid of the random lookup |
Example
Synchronous
Backend.RandomInfo.DeleteRandomData(RandomType.User, "9cd283c0-00c6-11ed-93ca-27f1ba8e440c");
Asynchronous
Backend.RandomInfo.DeleteRandomData(RandomType.User,
"9cd283c0-00c6-11ed-93ca-27f1ba8e440c", (callback) => {
// Post-process
});
SendQueue
SendQueue.Enqueue(Backend.RandomInfo.DeleteRandomData, RandomType.User,
"9cd283c0-00c6-11ed-93ca-27f1ba8e440c", (callback) => {
// Post-process
});
Return cases
Success cases
When the data is deleted successfully
statusCode : 204
Error cases
When the entered uuid is null or string.Empty
statusCode : 400
errorCode : ValidationException
When the type of the random lookup is different(designated as RandomType.Guild when it is user type)
statusCode : 400
errorCode : BadParameterException
(Random lookup type: Guild) When the user has not joined a guild
statusCode : 404
errorCode : NotFoundException
When the uuid does not exist
statusCode : 404
errorCode : NotFoundException