mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +00:00
Can delete all the emojies of a specified user
This commit is contained in:
parent
7a451e5924
commit
5ba6362c78
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user