From 036b5f889fad586aa154d436610dfa3d3f849ccb Mon Sep 17 00:00:00 2001 From: Brad Murray Date: Wed, 20 Jul 2022 10:32:51 -0400 Subject: [PATCH] Use discordgo as the protocol.id in the m.bridge event to differentiate from other discord bridges --- guildportal.go | 2 +- portal.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/guildportal.go b/guildportal.go index 5f98c33..d06e204 100644 --- a/guildportal.go +++ b/guildportal.go @@ -126,7 +126,7 @@ func (guild *Guild) getBridgeInfo() (string, event.BridgeEventContent) { BridgeBot: guild.bridge.Bot.UserID, Creator: guild.bridge.Bot.UserID, Protocol: event.BridgeInfoSection{ - ID: "discord", + ID: "discordgo", DisplayName: "Discord", AvatarURL: guild.bridge.Config.AppService.Bot.ParsedAvatar.CUString(), ExternalURL: "https://discord.com/", diff --git a/portal.go b/portal.go index b12f5b1..f162046 100644 --- a/portal.go +++ b/portal.go @@ -247,7 +247,7 @@ func (portal *Portal) getBridgeInfo() (string, event.BridgeEventContent) { BridgeBot: portal.bridge.Bot.UserID, Creator: portal.MainIntent().UserID, Protocol: event.BridgeInfoSection{ - ID: "discord", + ID: "discordgo", DisplayName: "Discord", AvatarURL: portal.bridge.Config.AppService.Bot.ParsedAvatar.CUString(), ExternalURL: "https://discord.com/",