cordless/vendor/github.com/Bios-Marcel/discordemojimap
Marcel Schramm 8bdb018434 Vendor dependencies and run go mod tidy 2021-12-16 12:20:39 +01:00
..
LICENSE Vendor dependencies and run go mod tidy 2021-12-16 12:20:39 +01:00
README.md Vendor dependencies and run go mod tidy 2021-12-16 12:20:39 +01:00
go.mod Vendor dependencies and run go mod tidy 2021-12-16 12:20:39 +01:00
mapping.go Vendor dependencies and run go mod tidy 2021-12-16 12:20:39 +01:00
query.go Vendor dependencies and run go mod tidy 2021-12-16 12:20:39 +01:00
replacer.go Vendor dependencies and run go mod tidy 2021-12-16 12:20:39 +01:00

README.md

Discord Emoji Map

builds.sr.ht status GoDoc codecov

This is the map of emojis that discord uses. However, I have left out different skin tones and such. A complete map might follow at some point.

Usage

The usage is quite simple, you just pass your input string and it replaces all valid emoji sequences with their respective emojis.

package main

import (
    "fmt"
    "github.com/Bios-Marcel/discordemojimap"
)

func main() {
    fmt.Println(discordemojimap.Replace("What a wonderful day :sun_with_face:, am I right?"))
}