mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 07:05:03 +00:00
Case icon
This commit is contained in:
parent
792a65c26c
commit
d24e39b4ec
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,7 @@ import { chunkMessageLines, emptyEmbedValue, messageLink } from "../../../utils"
|
||||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
|
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
|
||||||
import { CasesPluginType } from "../types";
|
import { CasesPluginType } from "../types";
|
||||||
import { getCaseColor } from "./getCaseColor";
|
import { getCaseColor } from "./getCaseColor";
|
||||||
|
import { getCaseIcon } from "./getCaseIcon";
|
||||||
import { resolveCaseId } from "./resolveCaseId";
|
import { resolveCaseId } from "./resolveCaseId";
|
||||||
|
|
||||||
export async function getCaseEmbed(
|
export async function getCaseEmbed(
|
||||||
|
@ -35,8 +36,10 @@ export async function getCaseEmbed(
|
||||||
? await timeAndDate.inMemberTz(requestMemberId, createdAt)
|
? await timeAndDate.inMemberTz(requestMemberId, createdAt)
|
||||||
: timeAndDate.inGuildTz(createdAt);
|
: timeAndDate.inGuildTz(createdAt);
|
||||||
|
|
||||||
|
const icon = getCaseIcon(pluginData, theCase.type);
|
||||||
|
|
||||||
const embed: any = {
|
const embed: any = {
|
||||||
title: `${actionTypeStr} - Case #${theCase.case_number}`,
|
title: `${icon} ${actionTypeStr} - Case #${theCase.case_number}`.trim(),
|
||||||
footer: {
|
footer: {
|
||||||
text: `Case created on ${createdAtWithTz.format(timeAndDate.getDateFormat("pretty_datetime"))}`,
|
text: `Case created on ${createdAtWithTz.format(timeAndDate.getDateFormat("pretty_datetime"))}`,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue