Forum Discussion
firstteam
May 16, 2021Copper Contributor
Possibly check blocked state instead of exception
Once a user blocked the bot, and when a message is sent to that user, the exception(Forbidden) was thrown. Is there any possible way to check whether the user has blocked or not, instead of catching the exception?
So maybe something like if(user.hasblocked()) {}....?
So maybe something like if(user.hasblocked()) {}....?
2 Replies
- Mamatha-MSFTFormer Employee
- viveknunaCopper Contributor
Mamatha-MSFT Is it still the same case? Cant we get the event/notification when user blocks the bot?