Skip to content

Instantly share code, notes, and snippets.

@Weissnix4711
Created July 23, 2024 22:08
Show Gist options
  • Save Weissnix4711/36dcbb7bbac8053760166d2f382cdab2 to your computer and use it in GitHub Desktop.
Save Weissnix4711/36dcbb7bbac8053760166d2f382cdab2 to your computer and use it in GitHub Desktop.
Matterbridge fix
diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go
index 51dbe6bc..3e9d2c05 100644
--- a/bridge/discord/discord.go
+++ b/bridge/discord/discord.go
@@ -83,8 +83,8 @@ func (b *Bdiscord) Connect() error {
b.Log.Info("Connection succeeded")
// Add privileged intent for guild member tracking. This is needed to track nicks
// for display names and @mention translation
- b.c.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAllWithoutPrivileged |
- discordgo.IntentsGuildMembers)
+ //b.c.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAllWithoutPrivileged |
+ // discordgo.IntentsGuildMembers)
err = b.c.Open()
if err != nil {
@@ -209,7 +209,7 @@ func (b *Bdiscord) Connect() error {
members, err := b.c.GuildMembers(b.guildID, "", 1000)
if err != nil {
b.Log.Error("Error obtaining server members: ", err)
- return err
+ //return err
}
for _, member := range members {
if member == nil {
diff --git a/vendor/github.com/bwmarrin/discordgo/discord.go b/vendor/github.com/bwmarrin/discordgo/discord.go
index 0b571764..61ac09f3 100644
--- a/vendor/github.com/bwmarrin/discordgo/discord.go
+++ b/vendor/github.com/bwmarrin/discordgo/discord.go
@@ -55,7 +55,7 @@ func New(token string) (s *Session, err error) {
s.Identify.LargeThreshold = 250
s.Identify.Properties.OS = runtime.GOOS
s.Identify.Properties.Browser = "DiscordGo v" + VERSION
- s.Identify.Intents = IntentsAllWithoutPrivileged
+ s.Identify.Intents = IntentsAll
s.Identify.Token = token
s.Token = token
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment