Skip to content

Commit

Permalink
Merge pull request #171 from FabienBounoir/master
Browse files Browse the repository at this point in the history
fix: 🐛 Error when check if isThread() channel when use generateFromMessages()
  • Loading branch information
ItzDerock authored May 26, 2024
2 parents 65849b5 + c500a7d commit 0c42383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/renderers/reply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default async function MessageReply({ message, context }: { message: Mess
roleColor={referencedMessage.member?.displayHexColor ?? undefined}
bot={!isCrosspost && referencedMessage.author.bot}
verified={referencedMessage.author.flags?.has(UserFlags.VerifiedBot)}
op={message.channel.isThread() && referencedMessage.author.id === message.channel.ownerId}
op={message?.channel?.isThread?.() && referencedMessage.author.id === message?.channel?.ownerId}
server={isCrosspost ?? undefined}
command={isCommand}
>
Expand Down

0 comments on commit 0c42383

Please sign in to comment.