To block a user on Discord, simply right click on their profile icon and select Block. Once you have blocked the person, his or her messages will get hidden.