Merge branch 'main' into temmie-random-cleanup
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
ci/woodpecker/pull_request_closed/build-and-publish Pipeline was successful

This commit is contained in:
Temmie 2025-08-15 12:23:14 +00:00
commit 3f7ceb94f5
25 changed files with 673 additions and 591 deletions

View file

@ -121,3 +121,22 @@ export interface ContextMenuInterface {
pointerY: number,
items: ContextMenuItem[]
}
export interface NavbarItem {
title: string,
icon: string,
hasPing?: boolean, // whether to draw a "ping" icon or not
callback: (...args: any[]) => any;
}
export interface INavbar {
guild: GuildResponse
channel: ChannelResponse
}
export interface NavbarOptions {
guild?: GuildResponse
channel?: ChannelResponse
isDirectMessages?: boolean
}

View file

@ -1,21 +1,9 @@
import type { GuildMemberResponse, MessageResponse, UserResponse } from "./interfaces";
import type { MessageResponse, UserResponse } from "./interfaces";
export interface MessageProps {
class?: string,
img?: string | null,
author: GuildMemberResponse
text: string,
timestamp: number,
format: "12" | "24",
type: "normal" | "grouped",
marginBottom: boolean,
authorColor: string,
last: boolean,
messageId: string,
replyingTo?: boolean,
editing?: boolean,
me: UserResponse
message: MessageResponse,
replyMessage?: MessageResponse
replyMessage?: MessageResponse,
type: "normal" | "grouped",
editing?: boolean,
isMentioned?: boolean,
}