Categorygithub.com/clinet/discordgo-embed
modulepackage
0.0.0-20220113222025-bafe0c917646
Repository: https://github.com/clinet/discordgo-embed.git
Documentation: pkg.go.dev

# README

discordgo-embed

GoDoc Go Report Card

An embed helper library for DiscordGo.

Installing

go get github.com/clinet/discordgo-embed

Example

package main

import (
    "github.com/bwmarrin/discordgo"
    "github.com/Clinet/discordgo-embed"
)

// ...

discordSession.ChannelSendEmbed(channelID, embed.NewGenericEmbed("Example", "This is an example embed!"))
discordSession.ChannelSendEmbed(channelID, embed.NewErrorEmbed("Example Error", "This is an example error embed!"))

License

The source code for discordgo-embed is released under the MIT License. See LICENSE for more details.

Donations

All donations are appreciated and help me stay awake at night to work on this more. Even if it's not much, it helps a lot in the long run!

Donate

# Functions

NewEmbed returns a new embed object.
NewErrorEmbed creates a new error embed.
NewErrorEmbedAdvanced creates a new error embed with a custom color.
NewGenericEmbed creates a new generic embed.
NewGenericEmbedAdvanced creates a new generic embed with a custom color.

# Constants

Constants for message embed character limits.
Constants for message embed character limits.
Constants for message embed character limits.
Constants for message embed character limits.
Constants for message embed character limits.
Constants for message embed character limits.
Constants for message embed character limits.

# Structs

Embed ...