Discord has no QR code for servers. The QR you see in the Discord app is for logging in on a new device, not for joining. To put a server on a poster, a stream overlay or a conference badge, make a standard QR code from the invite link: discord.gg/ followed by the invite code, or the longer discord.com/invite/... form, which does the same thing. A scan opens the Discord app on the join screen, or the web version with an invite preview if the app is not installed.
One thing to do before printing: make the invite permanent. By default a Discord invite expires after 7 days and the link then dies, which turns your poster into a dead end. In Discord, open Invite People, click Edit invite link, set Expire after to Never and Max number of uses to No limit. If your server has a vanity URL (discord.gg/yourname, a Boost perk), use that: it never expires and is easy to read out loud as well.
Typical places: a stream overlay or the end screen of a video (make the code big and leave it on screen for ten seconds), a poster at a LAN party or a game shop, the back of a convention badge, a slide at a community meetup, a sticker on a laptop. On screen, 150 px or larger with a clear margin around it; printed, 3 cm or more. The frame text "Join the Discord" can be your server name.
A static code holds the invite link itself, so if you ever revoke that invite the code stops working. Keep the invite you printed, or point the code at a vanity URL. If the invite might change, an editable code can be repointed without reprinting.
Questions
How do I get a Discord invite link?
In the server, click Invite People (or the server name, then Invite People). The link looks like https://discord.gg/abc123. Click Edit invite link to make it permanent before copying.
Why did my Discord QR code stop working?
The invite expired. Invites last 7 days by default. Make a new invite with Expire after set to Never, make a new code from it, and reprint. Scan the old one with the scan test to confirm it still holds the old link.
Does Discord have its own QR code for servers?
No. The QR code in the Discord app logs you in on another device. For a server, use a standard QR code with the invite link.
Can I put the Discord logo in the middle?
Discord’s brand guidelines restrict use of the Clyde logo. The colours and the frame text already make it recognisable.
Does the code work on a stream overlay?
Yes, if it is big enough and stays on screen long enough: at least 150 px tall, dark dots on a light box, visible for about ten seconds so viewers can pick up a phone.