diff --git a/utils/actions/getSlack.ts b/utils/actions/getSlack.ts index a51eea39..618b289f 100644 --- a/utils/actions/getSlack.ts +++ b/utils/actions/getSlack.ts @@ -15,7 +15,7 @@ async function getSlack({ user_token: slack_token, count: amount, }); - slackValue = response.messages.matches.filter( + slackValue = response?.messages?.matches?.filter( (message) => !message.channel.is_private ); }