completionId: cgen-f38b6ad90a2e4785a8154efca4858444
cgen-f38b6ad90a2e4785a8154efca4858444
This commit is contained in:
parent
ec34f45c10
commit
52ea33e147
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue