Get up to 50 messages before ISO 8601 timestamp
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
import { getMessageInformation, sendMessageToChannel } from "../services/messageService";
|
||||
import { getMessageInformation, getMessagesBefore, sendMessageToChannel } from "../services/messageService";
|
||||
|
||||
export async function fetchMessageData(id:string) {
|
||||
return await getMessageInformation(id);
|
||||
}
|
||||
|
||||
export async function fetchMessagesBefore(date:string, channelId:string) {
|
||||
return getMessagesBefore(date, channelId);
|
||||
}
|
||||
|
||||
export async function sendMessage(
|
||||
channelId: string,
|
||||
userId: string,
|
||||
|
||||
Reference in New Issue
Block a user