MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / DiscordClient

Method DiscordClient

api/pkg/di/container.go:1322–1329  ·  view source on GitHub ↗

DiscordClient creates a new instance of discord.Client

()

Source from the content-addressed store, hash-verified

1320
1321// DiscordClient creates a new instance of discord.Client
1322func (container *Container) DiscordClient() (client *discord.Client) {
1323 container.logger.Debug(fmt.Sprintf("creating %T", client))
1324 return discord.New(
1325 discord.WithHTTPClient(container.HTTPClient("discord")),
1326 discord.WithApplicationID(os.Getenv("DISCORD_APPLICATION_ID")),
1327 discord.WithBotToken(os.Getenv("DISCORD_BOT_TOKEN")),
1328 )
1329}
1330
1331// PlunkClient creates a new instance of plunk.Client
1332func (container *Container) PlunkClient() (client *plunk.Client) {

Callers 2

DiscordServiceMethod · 0.95

Calls 2

HTTPClientMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected