|
|
|
|
@ -192,6 +192,7 @@ interface TranscriptComponent {
|
|
|
|
|
|
|
|
|
|
interface TranscriptAuthor {
|
|
|
|
|
username: string;
|
|
|
|
|
discriminator?: string;
|
|
|
|
|
nickname?: string;
|
|
|
|
|
id: string;
|
|
|
|
|
iconURL?: string;
|
|
|
|
|
@ -389,6 +390,7 @@ export class Transcript {
|
|
|
|
|
type: type,
|
|
|
|
|
for: {
|
|
|
|
|
username: member!.user.username,
|
|
|
|
|
discriminator: member!.user.discriminator,
|
|
|
|
|
id: member!.user.id,
|
|
|
|
|
topRole: {
|
|
|
|
|
color: member!.roles.highest.color
|
|
|
|
|
@ -402,6 +404,7 @@ export class Transcript {
|
|
|
|
|
createdTimestamp: Date.now(),
|
|
|
|
|
createdBy: {
|
|
|
|
|
username: interaction.user.username,
|
|
|
|
|
discriminator: interaction.user.discriminator,
|
|
|
|
|
id: interaction.user.id,
|
|
|
|
|
topRole: {
|
|
|
|
|
color: interactionMember?.roles.highest.color ?? 0x000000
|
|
|
|
|
@ -417,6 +420,7 @@ export class Transcript {
|
|
|
|
|
id: message.id,
|
|
|
|
|
author: {
|
|
|
|
|
username: message.author.username,
|
|
|
|
|
discriminator: message.author.discriminator,
|
|
|
|
|
id: message.author.id,
|
|
|
|
|
topRole: {
|
|
|
|
|
color: message.member ? message.member.roles.highest.color : 0x000000
|
|
|
|
|
|