/[sudobot]/trunk/src/commands/moderation/HistoryCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/moderation/HistoryCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 86 by rakin, Mon Jul 29 17:28:32 2024 UTC revision 105 by rakin, Mon Jul 29 17:28:37 2024 UTC
# Line 85  export default class HistoryCommand exte Line 85  export default class HistoryCommand exte
85              // }              // }
86    
87              if (log.get().meta) {              if (log.get().meta) {
88                  const json = JSON.parse(log.get().meta);                  const json = typeof log.get().meta === 'string' ? JSON.parse(log.get().meta) : log.get().meta;
89    
90                  if (Object.keys(json).length > 0) {                  if (Object.keys(json).length > 0) {
91                      str += "Additional Attributes:\n```\n";                      str += "Additional Attributes:\n```\n";

Legend:
Removed from v.86  
changed lines
  Added in v.105

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26