Update WebSocket for message sending to match backend/pulls/47 #73
1 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import type { WSEvent } from "./enums"
|
||||
|
||||
export interface ChannelPermissionResponse {
|
||||
channel_uuid: string,
|
||||
role_uuid: string,
|
||||
|
@ -56,6 +58,19 @@ export interface MessageResponse {
|
|||
member: GuildMemberResponse,
|
||||
}
|
||||
|
||||
export interface IMessageDelete {
|
||||
uuid: string
|
||||
}
|
||||
|
||||
export interface WSError {
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface WSMessage {
|
||||
event: WSEvent,
|
||||
entity: MessageResponse | IMessageDelete | WSError
|
||||
}
|
||||
|
||||
export interface InviteResponse {
|
||||
id: string,
|
||||
user_uuid: string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue