economy.ts 418 B

12345678910111213141516171819202122
  1. import { Prop } from "./prop.js";
  2. export interface UserData {
  3. userId: string;
  4. economy:{
  5. coins: number;
  6. logs: Economylogs[];
  7. },
  8. props:Prop[]
  9. }
  10. export interface Economylogs {
  11. type: 'add' | 'remove';
  12. amount: number;
  13. reason: string;
  14. date: string;
  15. }
  16. export interface EconomyCommands {
  17. name: string;
  18. type: 'add' | 'remove';
  19. amount: number;
  20. reason: string;
  21. }