mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-13 20:18:50 +03:00
show news channels
This commit is contained in:
@@ -134,9 +134,9 @@ std::vector<Snowflake> Guild::GetSortedChannels(Snowflake ignore) const {
|
||||
for (const auto &channel_id : channels) {
|
||||
const auto *data = discord.GetChannel(channel_id);
|
||||
if (data == nullptr) continue;
|
||||
if (!data->ParentID.IsValid() && data->Type == ChannelType::GUILD_TEXT)
|
||||
if (!data->ParentID.IsValid() && (data->Type == ChannelType::GUILD_TEXT || data->Type == ChannelType::GUILD_NEWS))
|
||||
orphan_channels[data->Position].push_back(data);
|
||||
else if (data->ParentID.IsValid() && data->Type == ChannelType::GUILD_TEXT)
|
||||
else if (data->ParentID.IsValid() && (data->Type == ChannelType::GUILD_TEXT || data->Type == ChannelType::GUILD_NEWS))
|
||||
category_to_channels[data->ParentID].push_back(data);
|
||||
else if (data->Type == ChannelType::GUILD_CATEGORY)
|
||||
position_to_categories[data->Position].push_back(data);
|
||||
|
||||
Reference in New Issue
Block a user