feat: add interfaces for WebSocket message
This commit is contained in:
parent
30837299be
commit
b9dd9d3417
1 changed files with 15 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue