Browse Source

Use discordgo as the protocol.id in the m.bridge event to differentiate from other discord bridges

Brad Murray 2 năm trước cách đây
mục cha
commit
036b5f889f
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      guildportal.go
  2. 1 1
      portal.go

+ 1 - 1
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/",

+ 1 - 1
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/",