Discord

package
v0.0.0-...-78e7102 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordClient

type DiscordClient struct {
	ApiKey          string
	Session         *discordgo.Session
	TelegramIDs     *map[string]int64
	DiscordMentions *map[string]string
	TelegramClient  *tgbotapi.BotAPI
	Email_from_list *map[string]string
	SendEmail       func(string, string, string)
}

func SetUp

func SetUp(config *Config.Config) DiscordClient

func (*DiscordClient) GetDiscordChannelID

func (client *DiscordClient) GetDiscordChannelID(channel_name string) string

GetDiscordChannelID gets the channel ID based on the channel name

func (*DiscordClient) Init

func (client *DiscordClient) Init()

func (*DiscordClient) SendChannelMessage

func (client *DiscordClient) SendChannelMessage(discordSession *discordgo.Session, id_for_channel, message string)

SendChannelMessage sends a message to a channel using the channel ID

func (*DiscordClient) StartListening

func (client *DiscordClient) StartListening()

Jump to

Keyboard shortcuts

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