Property 'user' does not exist on type 'never'.

`An Interaction Was Initialized in ${
options.interaction.inGuild()
? `${Formatters.channelMention(
options.interaction.channelId
)} Of ${options.interaction.guild.name} (${
options.interaction.guild.id
}) executed by ${Formatters.userMention(
options.interaction.user.id
)} [${options.interaction.user.tag}] (${
options.interaction.user.id
})`
: `the DMs of ${Formatters.userMention(
options.interaction.user.id
)} [${options.interaction.user.tag}] (${
options.interaction.user.id
})`
}`
`An Interaction Was Initialized in ${
options.interaction.inGuild()
? `${Formatters.channelMention(
options.interaction.channelId
)} Of ${options.interaction.guild.name} (${
options.interaction.guild.id
}) executed by ${Formatters.userMention(
options.interaction.user.id
)} [${options.interaction.user.tag}] (${
options.interaction.user.id
})`
: `the DMs of ${Formatters.userMention(
options.interaction.user.id
)} [${options.interaction.user.tag}] (${
options.interaction.user.id
})`
}`
1 Reply
_me.xi ツ
_me.xi ツOP3y ago
options: InteractionLoggerManagerOptions
options: InteractionLoggerManagerOptions
type InteractionLoggerManagerOptions = {
status: "success" | "initialized" | "error";
interaction: CommandInteraction;
};
type InteractionLoggerManagerOptions = {
status: "success" | "initialized" | "error";
interaction: CommandInteraction;
};
@tipaka ?? I solved it by changing inGuild() to .inCachedGuild()
Want results from more Discord servers?
Add your server