mirror of
https://github.com/nx-bat/discordbot-ng.git
synced 2026-11-11 07:13:37 -05:00
Add message purging
This commit is contained in:
@@ -173,7 +173,7 @@ export class Database {
|
||||
}
|
||||
|
||||
static async purgeMessagesFrom(id: string) {
|
||||
await Database.db.run('DELETE from messages WHERE ');
|
||||
await Database.db.run('DELETE from messages WHERE author_id_hash = ?', Encrypter.hash(id));
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
Reference in New Issue
Block a user