MCPcopy
hub / github.com/42wim/matterbridge / Bdiscord

Struct Bdiscord

bridge/discord/discord.go:22–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20)
21
22type Bdiscord struct {
23 *bridge.Config
24
25 c *discordgo.Session
26
27 nick string
28 userID string
29 guildID string
30
31 channelsMutex sync.RWMutex
32 channels []*discordgo.Channel
33 channelInfoMap map[string]*config.ChannelInfo
34
35 membersMutex sync.RWMutex
36 userMemberMap map[string]*discordgo.Member
37 nickMemberMap map[string]*discordgo.Member
38
39 // Webhook specific logic
40 useAutoWebhooks bool
41 transmitter *transmitter.Transmitter
42 cache *lru.Cache
43}
44
45func New(cfg *bridge.Config) bridge.Bridger {
46 newCache, err := lru.New(5000)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected