mirror of
https://github.com/mautrix/discord.git
synced 2025-03-14 14:15:37 +00:00
16 lines
266 B
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
|
|
}
|