diff --git a/README.md b/README.md index 9919aae..9356cec 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ _Special thanks to [@Phineas](https://github.com/Phineas/) for creating Lanyard, ## Usage -First, join the Lanyard [Discord](https://discord.gg/gYTp9JHrhg) (if you haven't already) for this to work. +First, join the Lanyard [Discord](https://discord.com/invite/WScAm7vNGF) (if you haven't already) for this to work. In a `README.md` file, include the following, replacing `:id` with your Discord user ID: diff --git a/pages/index.tsx b/pages/index.tsx index e9bcd35..7773f2c 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -22,7 +22,7 @@ export default function Home() { -

Make sure you're in the Discord for this to work.

+

Make sure you're in the Discord for this to work.

setUserId(e.target.value))}> diff --git a/src/renderCard.tsx b/src/renderCard.tsx index fea4b6e..c507724 100644 --- a/src/renderCard.tsx +++ b/src/renderCard.tsx @@ -162,7 +162,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise< white-space: nowrap; text-overflow: ellipsis; "> - ${body.data.activities[0].emoji ? + ${body.data.activities[0].emoji && body.data.activities[0].emoji.id ? `` : ``} - ${userStatus} + + ${body.data.activities[0].emoji && !body.data.activities[0].emoji.id ? + body.data.activities[0].emoji.name + ' ' + userStatus + : + userStatus + } + ` : ``}