DiscordClient creates a new instance of discord.Client
()
| 1320 | |
| 1321 | // DiscordClient creates a new instance of discord.Client |
| 1322 | func (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 |
| 1332 | func (container *Container) PlunkClient() (client *plunk.Client) { |
no test coverage detected