3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00

feat: add forum channel icon; use thread icon for news threads

This commit is contained in:
Dragory 2023-04-01 14:12:57 +03:00
parent d42ac8544f
commit 75ffb3dadf
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -18,6 +18,8 @@ const PUBLIC_THREAD_ICON =
"https://cdn.discordapp.com/attachments/740650744830623756/870343055855738921/public-thread.png";
const PRIVATE_THREAD_ICON =
"https://cdn.discordapp.com/attachments/740650744830623756/870343402447839242/private-thread.png";
const FORUM_CHANNEL_ICON =
"https://cdn.discordapp.com/attachments/740650744830623756/1091681253364875294/forum-channel-icon.png";
export async function getChannelInfoEmbed(
pluginData: GuildPluginData<UtilityPluginType>,
@ -40,6 +42,8 @@ export async function getChannelInfoEmbed(
[ChannelType.GuildStageVoice]: STAGE_CHANNEL_ICON,
[ChannelType.PublicThread]: PUBLIC_THREAD_ICON,
[ChannelType.PrivateThread]: PRIVATE_THREAD_ICON,
[ChannelType.AnnouncementThread]: PUBLIC_THREAD_ICON,
[ChannelType.GuildForum]: FORUM_CHANNEL_ICON,
}[channel.type] ?? TEXT_CHANNEL_ICON;
const channelType =