1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-26 13:38:52 +00:00

Can delete all the emojies of a specified user

This commit is contained in:
Pierre HUBERT 2020-04-18 12:15:42 +02:00
parent 7a451e5924
commit 5ba6362c78

View File

@ -97,6 +97,16 @@ export class CustomEmojisHelper {
}
/**
* Delete all the emojies of the user
*
* @param userID Target user ID
*/
public static async DeleteAllUser(userID: number) {
for(const emoji of await this.GetListUser(userID))
await this.Delete(emoji);
}
/**
* Turn a database entry into a custom emoji
*