Skip to content

docs: fix expired Discord invite in README badge - #183

Open
tianyiswufeng wants to merge 1 commit into
Autoloops:mainfrom
tianyiswufeng:fix/readme-discord-invite
Open

docs: fix expired Discord invite in README badge#183
tianyiswufeng wants to merge 1 commit into
Autoloops:mainfrom
tianyiswufeng:fix/readme-discord-invite

Conversation

@tianyiswufeng

Copy link
Copy Markdown

The Discord badge in the README links to https://discord.gg/q2R6AYXh9, which Discord reports as expired:

$ curl -s https://discord.com/api/v10/invites/q2R6AYXh9
{"message": "Invite is expired.", "code": 50270}   # HTTP 404

So anyone clicking through from GitHub lands on a dead invite.

This swaps in the invite currently published on autoloops.ai/greplica, which resolves to the same Greplica guild (1514612226403864638) and returns "expires_at": null, so it should not lapse again:

$ curl -s "https://discord.com/api/v10/invites/eNXJwHwYk8?with_counts=true"
{"code":"eNXJwHwYk8", ... "expires_at":null, "guild":{"name":"Greplica", ...}}   # HTTP 200

One-line README change, no code touched. Happy to use a different permanent invite if you would rather generate a fresh one.

The Discord badge links to https://discord.gg/q2R6AYXh9, which the
Discord API reports as expired:

    GET https://discord.com/api/v10/invites/q2R6AYXh9
    404 {"message": "Invite is expired.", "code": 50270}

Anyone joining from GitHub hits a dead link. Swapped in the invite
currently published on autoloops.ai/greplica, which resolves to the same
Greplica guild and has "expires_at": null, so it will not lapse again.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant