Double check bridging status before handling message
Some webhook messages don't seem to have the guild ID specified
This commit is contained in:
4
user.go
4
user.go
@@ -879,6 +879,10 @@ func (user *User) pushPortalMessage(msg interface{}, typeName, channelID, guildI
|
||||
}
|
||||
portal = thread.Parent
|
||||
}
|
||||
// Double check because some messages don't have the guild ID specified.
|
||||
if !user.bridgeMessage(portal.GuildID) {
|
||||
return
|
||||
}
|
||||
|
||||
portal.discordMessages <- portalDiscordMessage{
|
||||
msg: msg,
|
||||
|
||||
Reference in New Issue
Block a user