completionId: cgen-f38b6ad90a2e4785a8154efca4858444

cgen-f38b6ad90a2e4785a8154efca4858444
This commit is contained in:
Builder.io 2025-11-09 06:25:21 +00:00
parent ec34f45c10
commit 52ea33e147

View file

@ -235,8 +235,8 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
}
if (commandName === "profile") {
const username = interaction.member?.user?.username;
const discordId = interaction.member?.user?.id;
const username = interaction.user?.username || interaction.member?.user?.username || "Unknown";
const discordId = interaction.user?.id || interaction.member?.user?.id || "Unknown";
return res.status(200).json({
type: 4,