mautrix-discord/discord.go

16 lines
266 B
Go

package main
import (
"github.com/bwmarrin/discordgo"
)
func channelIsBridgeable(channel *discordgo.Channel) bool {
switch channel.Type {
case discordgo.ChannelTypeGuildText:
fallthrough
case discordgo.ChannelTypeGuildNews:
return true
}
return false
}