mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 10:25:01 +00:00
feat: add forum channel icon; use thread icon for news threads
This commit is contained in:
parent
d42ac8544f
commit
75ffb3dadf
1 changed files with 4 additions and 0 deletions
|
@ -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 =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue