commands

package
v0.0.0-...-905e761 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuditTestMessageEmbed = &discordgo.MessageEmbed{
		Title:       "Test embed",
		Description: ":wave: checking that this bot has permissions to send embed messages with thumbnails to this channel. Feel free to delete this message.",
		Thumbnail: &discordgo.MessageEmbedThumbnail{
			URL: "https://picsum.photos/200",
		},
	}
)

Functions

func CreateAuditLogEmbed

func CreateAuditLogEmbed(
	userID uint64, userAvatarURL string,
	roleID uint64,
	reason string,
	add bool,
) *discordgo.MessageEmbed

CreateAuditLogEmbed creates the embed used for audit log messages.

func CreateMembershipInfoEmbeds

func CreateMembershipInfoEmbeds(ctx context.Context, db *ent.Client, userID, guildID uint64) ([]*discordgo.MessageEmbed, error)

CreateMembershipInfoEmbeds creates a []*discordgo.MessageEmbed that describes the user's current role grants on a server.

func GetDisabledChannelEmbeds

func GetDisabledChannelEmbeds(ctx context.Context, db *ent.Client, channelIDs []string) ([]*discordgo.MessageEmbed, error)

GetDisabledChannelEmbeds creates a

func GetGuildInfoEmbeds

func GetGuildInfoEmbeds(dg *ent.Guild) []*discordgo.MessageEmbed

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL