diff --git a/src/helpers/CustomEmojisHelper.ts b/src/helpers/CustomEmojisHelper.ts index c7d1090..93957f2 100644 --- a/src/helpers/CustomEmojisHelper.ts +++ b/src/helpers/CustomEmojisHelper.ts @@ -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 *