Prevent password login when social account linked

@Better Auth I'm currently have two login methods: Discord & Username/Password. I now want to block users from logging in with their password when they have a discord account linked. How woul'd I do that?
Was this page helpful?
Prevent password login when social account linked - Better Auth