fix(discord): fix component parsing and modal field typing

This commit is contained in:
Peter Steinberger
2026-02-15 18:47:36 +00:00
parent f92900fc20
commit c118f6c688
3 changed files with 16 additions and 8 deletions

View File

@@ -43,7 +43,11 @@ export function buildDirectLabel(author: User, tagOverride?: string) {
return `${username ?? "unknown"} user id:${author.id}`;
}
export function buildGuildLabel(params: { guild?: Guild; channelName: string; channelId: string }) {
export function buildGuildLabel(params: {
guild?: Guild<true> | Guild;
channelName: string;
channelId: string;
}) {
const { guild, channelName, channelId } = params;
return `${guild?.name ?? "Guild"} #${channelName} channel id:${channelId}`;
}