Bouton pour supprimer les anciens messages
This commit is contained in:
@@ -5,7 +5,7 @@ import { RdDTextEditor } from "./apps/rdd-text-roll-editor.js";
|
||||
|
||||
|
||||
/**
|
||||
* Class providing helper methods to get the list of users, and
|
||||
* Class providing helper methods around the Chat message
|
||||
*/
|
||||
export class ChatUtility {
|
||||
|
||||
@@ -233,7 +233,12 @@ export class ChatUtility {
|
||||
static async setTimestamp(chatMessage) {
|
||||
await chatMessage.setFlag(SYSTEM_RDD, 'rdd-timestamp', game.system.rdd.calendrier.getTimestamp());
|
||||
}
|
||||
// TODO: find ChatLog to change the action for data-action flush
|
||||
|
||||
static getISODate(chatMessage) {
|
||||
const date = new Date(chatMessage.timestamp);
|
||||
return date?.toISOString().substring(0, 10)
|
||||
}
|
||||
|
||||
|
||||
// async flush() {
|
||||
// const question = game.i18n.localize("AreYouSure");
|
||||
|
||||
Reference in New Issue
Block a user