Switch startup, config, commands and db migrations to mautrix-go systems

This commit is contained in:
Tulir Asokan
2022-05-22 22:16:42 +03:00
parent cf5384d908
commit 9f9f7ca4fd
74 changed files with 3470 additions and 5682 deletions

16
discord.go Normal file
View File

@@ -0,0 +1,16 @@
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
}