mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 21:16:09 +00:00
fix: typescript moment
This commit is contained in:
parent
5338248ff8
commit
42b682d8fd
@ -10,7 +10,7 @@ import type {
|
||||
GatewayMessageReactionRemoveEmojiDispatchData,
|
||||
GatewayMessageUpdateDispatchData,
|
||||
} from 'discord-api-types/v10';
|
||||
import { type MakeRequired, type PartialClass, toCamelCase } from '../../common';
|
||||
import { type MakeRequired, type PartialClass, toCamelCase, type ObjectToLower } from '../../common';
|
||||
import { Message } from '../../structures';
|
||||
import type { UsingClient } from '../../commands';
|
||||
|
||||
@ -18,7 +18,10 @@ export const MESSAGE_CREATE = (self: UsingClient, data: GatewayMessageCreateDisp
|
||||
return new Message(self, data);
|
||||
};
|
||||
|
||||
export const MESSAGE_DELETE = async (self: UsingClient, data: GatewayMessageDeleteDispatchData) => {
|
||||
export const MESSAGE_DELETE = async (
|
||||
self: UsingClient,
|
||||
data: GatewayMessageDeleteDispatchData,
|
||||
): Promise<Message | ObjectToLower<GatewayMessageDeleteDispatchData>> => {
|
||||
return (await self.cache.messages?.get(data.id)) ?? toCamelCase(data);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user