Skip to content

Revolt-Unofficial-Clients/solenoid-badges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

solenoid-badges

A nice way to manage and add badges to any third party client.

Setup

git submodule add https://github.com/Revolt-Unofficial-Clients/solenoid-badges /lib/badges
// Import Badges from Submodule
import {badges} from "/lib/badges"

// Import Badge Types
import type {SolenoidBadge} from "/lib/badges"

badges.forEach((badge) => {
    badge.id.forEach((id) => {
        if (message.author_id === id) {
            // Do something
        }
    })
});

Updating

git submodule update --remote

Spec

[
    {
        "id": [],
        "title": "",
        "bkg": "",
        "colour": "",
        "url": ""
    }
]

id: User IDs title: Badge Name bkg: Badge Background colour: Badge Foreground url: CORS Enabled Image/Gif URL

About

Badges Repository from Solenoid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published