actions-marketplace-validations/Discord Activity Badge
Bridge your Discord State and Activities to a Representable Badge on your repository to show your current status.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 6, 2022
- License
- Apache 2.0
Pinned Snippet
uses: actions-marketplace-validations/codexlink_discord-activity-badge@cd229dadf3a5ab8bf3204aa0f7232da514b46b91 # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| BADGE_IDENTIFIER_NAME | The name of the badge (in markdown form) that will be utilized to replace the state of the user. If the identifier does not exists, then it will proceed to create a new one and append it on the top. You must arranged it right after. | no | — |
| COMMIT_MESSAGE | The commit message that the user wants to invoke whenever there's changes. | no | — |
| DISCORD_BOT_TOKEN | The token of your bot from the Discord's Developer Page. It was used to allow usage of Discord API. | yes | — |
| DISCORD_USER_ID | A long integer ID used to indicate who you are in a certain mutual guild. | yes | — |
| PROFILE_REPOSITORY | The repository from where the commits will be pushed. Fill this when you are indirectly deploying the script under different repository. | no | ${{ github.repository }} |
| URL_TO_REDIRECT_ON_CLICK | The URL to point when the badge has been clicked. | no | ${{ github.repository }} |
| WORKFLOW_TOKEN | The token of the Github Workflow Instance used to authenticate commits deployed by the script. Fill this when you are indirectly deploying the script under different repository. | no | ${{ github.token }} |
| CUSTOM_ACTIVITY_STRING | Overrides `Discord Activity` (Subject String) and User State with the state of `CustomActivity` with custom strings. | no | — |
| GAME_ACTIVITY_STRING | Overrides `Discord Activity` (Subject String) and User State with the state of `Game` with custom strings. | no | — |
| RICH_PRESENCE_STRING | Overrides `Discord Activity` (Subject String) and User State with the state of `Activity` with custom strings. | no | — |
| STREAM_ACTIVITY_STRING | Overrides `Discord Activity` (Subject String) and User State with the state of `Stream` with custom strings. | no | — |
| SPOTIFY_ACTIVITY_STRING | Overrides `Discord Activity` (Subject String) and User State with the state of `Unspecified` with custom strings. | no | — |
| ONLINE_STATUS_STRING | Overrides the status output in Online state. | no | — |
| IDLE_STATUS_STRING | Overrides the status output in Idle state. | no | — |
| DND_STATUS_STRING | Overrides the status output in Do-Not-Disturb (DND) state. | no | — |
| OFFLINE_STATUS_STRING | Overrides the status output in Offline state. | no | — |
| CUSTOM_ACTIVITY_COLOR | Renders status badge color whenever there's a Custom activity. Please check README.md for more information about this parameter. | no | — |
| GAME_ACTIVITY_COLOR | Renders status badge color whenever there's a Game activity. Please check README.md for more information about this parameter. | no | — |
| RICH_PRESENCE_COLOR | Renders status badge color whenever there's a Rich Presence. Please check README.md for more information about this parameter. | no | — |
| STREAM_ACTIVITY_COLOR | Renders status badge color whenever there's a Stream activity. Please check README.md for more information about this parameter. | no | — |
| SPOTIFY_ACTIVITY_COLOR | Renders status badge color whenever there's a Unspecified activity. Please check README.md for more information about this parameter. | no | — |
| ONLINE_STATUS_COLOR | Overrides the status color when the user is in Online state. | no | — |
| IDLE_STATUS_COLOR | Overrides the status color when the user is in Idle state. | no | — |
| DND_STATUS_COLOR | Overrides the status color when the user is in Do-Not-Disturb (DND) state. | no | — |
| OFFLINE_STATUS_COLOR | Overrides the status color when the user is in Offline state. | no | — |
| STATIC_SUBJECT_STRING | Statically declare a certain string to display on the subject. If declared, []_ACTIVITY_STRING and []_STATUS_STRING will be ignored. | no | — |
| PREFERRED_PRESENCE_CONTEXT | Overrides additional information to append in the badge. So far, only `DETAILS`, and `STATE` are allowed to be appended since it shows the other context of the application. | no | — |
| TIME_DISPLAY_OUTPUT | Appends time (based on preference) after the application name or detail when `APPEND_PRESENCE_CONTEXT` is `True`. | no | — |
| TIME_DISPLAY_ELAPSED_OVERRIDE_STRING | Overrides the string appended whenever the time is displayed for elapsed. This is effective only when `SHOW_TIME_DURATION` is `True`. | no | — |
| TIME_DISPLAY_REMAINING_OVERRIDE_STRING | Overrides the string appended whenever the time is displayed for remaining. This is effective only when `SHOW_TIME_DURATION` is `True`. | no | — |
| TIME_DISPLAY_SHORTHAND | Displays the time with hours and minutes shorthanded to h and m. | no | — |
| PREFERRED_ACTIVITY_TO_DISPLAY | Renders a particular activity as a prioritized activity. If the preferred activity does not exist, it will render any activity by default. | no | — |
| SHIFT_STATUS_ACTIVITY_COLORS | Interchange state and activity colors. This is useful only if you want to retain your state color position even though `APPEND_STATE_ON_SUBJECT` is true. | no | — |
| SPOTIFY_INCLUDE_ALBUM_PLAYLIST_NAME | Interchange state and activity colors. This is useful only if you want to retain your state color position even though `APPEND_STATE_ON_SUBJECT` is true. | no | — |
| STATUS_CONTEXT_SEPERATOR | The character/s that seperates the context of every status elements. | no | — |
| IS_DRY_RUN | Runs the usual process except it doesn't commit changes. | no | — |
Outputs
no outputs