feat: add interfaces for WebSocket message

This commit is contained in:
SauceyRed 2025-08-07 22:26:54 +02:00
parent 30837299be
commit b9dd9d3417
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462

View file

@ -1,3 +1,5 @@
import type { WSEvent } from "./enums"
export interface ChannelPermissionResponse { export interface ChannelPermissionResponse {
channel_uuid: string, channel_uuid: string,
role_uuid: string, role_uuid: string,
@ -56,6 +58,19 @@ export interface MessageResponse {
member: GuildMemberResponse, member: GuildMemberResponse,
} }
export interface IMessageDelete {
uuid: string
}
export interface WSError {
message: string
}
export interface WSMessage {
event: WSEvent,
entity: MessageResponse | IMessageDelete | WSError
}
export interface InviteResponse { export interface InviteResponse {
id: string, id: string,
user_uuid: string, user_uuid: string,