MessageLogger: add context menu option to clear channel history (#2008)

Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
Nickyux 2024-06-07 23:28:17 +02:00 committed by GitHub
parent 1bc9a800a6
commit 29c65948b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 70 additions and 53 deletions

View file

@ -14,7 +14,7 @@ import { Message } from "discord-types/general";
* @param messageId The message id
* @param fields The fields of the message to change. Leave empty if you just want to re-render
*/
export function updateMessage(channelId: string, messageId: string, fields?: Partial<Message>) {
export function updateMessage(channelId: string, messageId: string, fields?: Partial<Message & Record<string, any>>) {
const channelMessageCache = MessageCache.getOrCreate(channelId);
if (!channelMessageCache.has(messageId)) return;