-
大佬,我看main.go里会有个LoadDiscordClient加载两个处理去请求discord,这里没怎么看明白,我看回调接口也是从这块发起请求的。这里获取到discord图片的逻辑是怎么样的呢?LoadDiscordClient这块逻辑可以详细说说吗?没搞懂获取discord图片的原理
-
报错信息:
invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x863832]
goroutine 78 [running]:
wrap-midjourney/handlers.DiscordMsgUpdate(0xc…
-
https://github.com/hammerandchisel/discord-api-docs/issues/17
Do we let user deal with that or do we automatically do that ?
(I personally it's better that the users deal with that because they can p…
-
I'm trying to get a Guild Member. This is the code im using:
```golang
type RoleApi struct {
discord *discordgo.Session
cfg *core.Config
}
func NewRoleApi(ctx *core.AppContext) *RoleAp…
-
Hello. I wasn't able to create mocks for the interface
```
import "github.com/bwmarrin/discordgo"
type ChannelSendMessageInterface interface {
ChannelMessageSend(channel string, content strin…
-
## Description
Currently, when you enter `!status` into your Discord channel after entering `!pause`, the parser shows as still running instead of paused.
## Deliverables
* `!status` should retur…
-
Hi, I'm trying to make a bot that tracks voice states, but I can't seem to get them.
This is the following code used to create my client:
```go
// Create bot client
session, err := discordgo.N…
-
## Problem
Sharding can't be implemented (tested) without a bot in 2,500 guilds.
We do not have a bot that is in 2,500 guilds and there is no point in going through the effort to achieve that w…
-
```go
//telnet_msg.go
// replace the relevant line with
out += fmt.Sprintf("[%s](%s%d)", itemName, t.config.ItemURL, itemID)
```
```go
// discord.go
// add to import block ...
"net/http"
…
-
如果是右键回复的方式,钉钉的参数有些是加密,没找到官方文档如何解密的