Skip to content

Commit

Permalink
fix sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
IoIxD committed Jul 23, 2024
1 parent db26e38 commit bf89845
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sitemap.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ func (s *server) writeSitemap() error {
if forum.Type != discord.GuildForum {
continue
}
parent, err := s.channel(forum.ParentID)
if err != nil {
continue
}
if parent.Type != discord.GuildForum {
continue
}
perms := discord.CalcOverwrites(guild, forum, *memberSelf)
if !perms.Has(0 |
discord.PermissionReadMessageHistory |
Expand Down

0 comments on commit bf89845

Please sign in to comment.