If it’s unsupported, you should do it manually (wrap an img element inside of a link element) – I recommend iconmonstr: https://iconmonstr.com/?s=discord
As I have to use the Gutenberg social icons block on all pages, I kindly ask for a solution (class declaration) on functions.php or style.css for a Twenty Twenty-One child theme.