MCPcopy Create free account
hub / github.com/AnswerOverflow/AnswerOverflow / getDiscordURLForMessage

Function getDiscordURLForMessage

packages/ui/src/utils/discord.tsx:97–104  ·  view source on GitHub ↗
(
	message: MessageWithDiscordAccount | MessageFull,
)

Source from the content-addressed store, hash-verified

95}
96
97export function getDiscordURLForMessage(
98 message: MessageWithDiscordAccount | MessageFull,
99) {
100 const serverId = message.serverId;
101 const channelId = message.channelId;
102 const messageId = message.id;
103 return `https://discord.com/channels/${serverId}/${channelId}/${messageId}`;
104}

Callers 2

SidebarFunction · 0.90
MessageAuthorAreaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected