Feature and its Use Cases
The SocialShareButton component currently supports multiple social media platforms including WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email, and Pinterest. However, it lacks support for Discord, which is widely used among developers and open-source communities.
When "discord" is passed in the platforms array, no button is rendered and no sharing action is performed. This creates an inconsistency in expected behavior, especially for users who rely on Discord for content sharing.
Expected Behavior
Discord should appear as a share option when included in the platforms array.
Clicking the Discord button should:
Open Discord (web app) in a new tab.
Copy the share URL to the clipboard (since Discord has no direct web share API).
Current Behavior
No Discord button is displayed.
No handling exists for Discord in:
getPlatformsHTML()
getShareURL()
share()
Proposed Solution
Add Discord to getPlatformsHTML() with its official brand color and SVG icon.
Add Discord handling in getShareURL().
Implement logic in share() to:
Open Discord (https://discord.com/channels/@me)
Copy the share link to clipboard.
Additional Context
No response
Code of Conduct
Feature and its Use Cases
The SocialShareButton component currently supports multiple social media platforms including WhatsApp, Facebook, X, LinkedIn, Telegram, Reddit, Email, and Pinterest. However, it lacks support for Discord, which is widely used among developers and open-source communities.
When "discord" is passed in the platforms array, no button is rendered and no sharing action is performed. This creates an inconsistency in expected behavior, especially for users who rely on Discord for content sharing.
Expected Behavior
Discord should appear as a share option when included in the platforms array.
Clicking the Discord button should:
Open Discord (web app) in a new tab.
Copy the share URL to the clipboard (since Discord has no direct web share API).
Current Behavior
No Discord button is displayed.
No handling exists for Discord in:
getPlatformsHTML()
getShareURL()
share()
Proposed Solution
Add Discord to getPlatformsHTML() with its official brand color and SVG icon.
Add Discord handling in getShareURL().
Implement logic in share() to:
Open Discord (https://discord.com/channels/@me)
Copy the share link to clipboard.
Additional Context
No response
Code of Conduct