Code Monkey home page Code Monkey logo

discord-economy-super's People

Contributors

compositr avatar jsjack avatar nishant1500 avatar notminhducgamingtv avatar shadowplay1 avatar thegamer20081 avatar unqxl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discord-economy-super's Issues

Typings

The typings are messed up and throws a lot of errors.

node_modules/discord-economy-super/mongodb/typings/cached/CachedItems.d.ts:20:40 - error TS7006: Parameter 'guildID' implicitly has an 'any' type.

20     public constructor(userID: string, guildID, options: EconomyOptions, database: DatabaseManager)
                                          ~~~~~~~

node_modules/discord-economy-super/mongodb/typings/cached/CachedItems.d.ts:23:49 - error TS2344: Type 'CooldownItem' does not satisfy the constraint 'EconomyConstructors'.
  Type 'CooldownItem' is missing the following properties from type 'HistoryItem<any>': id, name, price, totalPrice, and 7 more.

23 export class CachedCooldowns extends CachedItem<CooldownItem, true, false, false> {
                                                   ~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/cached/CachedItems.d.ts:24:40 - error TS7006: Parameter 'guildID' implicitly has an 'any' type.

24     public constructor(userID: string, guildID, options: EconomyOptions, database: DatabaseManager)
                                          ~~~~~~~

node_modules/discord-economy-super/mongodb/typings/classes/CooldownItem.d.ts:21:21 - error TS2304: Cannot find name 'EconomyOptions'.

21         ecoOptions: EconomyOptions,
                       ~~~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/classes/CooldownItem.d.ts:22:26 - error TS2304: Cannot find name 'RawEconomyUser'.

22         cooldownsObject: RawEconomyUser,
                            ~~~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/classes/InventoryItem.d.ts:37:12 - error TS7008: Member 'guildID' implicitly has an 'any' type.

37     public guildID
              ~~~~~~~

node_modules/discord-economy-super/mongodb/typings/classes/user/Cooldowns.d.ts:1:10 - error TS2616: 'RewardCooldownData' can only be imported by using 'import RewardCooldownData = require("../../interfaces/RewardCooldownData")' or a default import.

1 import { RewardCooldownData } from '../../interfaces/RewardCooldownData'
           ~~~~~~~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/classes/user/Cooldowns.d.ts:1:36 - error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.

1 import { RewardCooldownData } from '../../interfaces/RewardCooldownData'
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/classes/user/History.d.ts:59:58 - error TS2304: Cannot find name 'SVGAnimatedNumberList'.

59     public findItem<T extends object = any>(id: string | SVGAnimatedNumberList): Promise<HistoryItem<T>>
                                                            ~~~~~~~~~~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/classes/user/History.d.ts:66:57 - error TS2304: Cannot find name 'SVGAnimatedNumberList'.

66     public getItem<T extends object = any>(id: string | SVGAnimatedNumberList): Promise<HistoryItem<T>>
                                                           ~~~~~~~~~~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:11:5 - error TS1070: 'public' modifier cannot appear on a type member.

11     public id: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:16:5 - error TS1070: 'public' modifier cannot appear on a type member.

16     public memberID: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:21:5 - error TS1070: 'public' modifier cannot appear on a type member.

21     public guildID: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:26:5 - error TS1070: 'public' modifier cannot appear on a type member.

26     public name: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:31:5 - error TS1070: 'public' modifier cannot appear on a type member.

31     public price: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:36:5 - error TS1070: 'public' modifier cannot appear on a type member.

36     public totalPrice: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:41:5 - error TS1070: 'public' modifier cannot appear on a type member.

41     public quantity: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:46:5 - error TS1070: 'public' modifier cannot appear on a type member.

46     public message?: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:51:5 - error TS1070: 'public' modifier cannot appear on a type member.

51     public role?: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:56:5 - error TS1070: 'public' modifier cannot appear on a type member.

56     public date: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/HistoryData.d.ts:61:5 - error TS1070: 'public' modifier cannot appear on a type member.

61     public custom?: CustomItemData<T>
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:11:5 - error TS1070: 'public' modifier cannot appear on a type member.

11     public id: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:16:5 - error TS1070: 'public' modifier cannot appear on a type member.

16     public name: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:21:5 - error TS1070: 'public' modifier cannot appear on a type member.

21     public price: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:26:5 - error TS1070: 'public' modifier cannot appear on a type member.

26     public message?: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:31:5 - error TS1070: 'public' modifier cannot appear on a type member.

31     public maxAmount?: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:36:5 - error TS1070: 'public' modifier cannot appear on a type member.

36     public role?: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:41:5 - error TS1070: 'public' modifier cannot appear on a type member.

41     public date: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/InventoryData.d.ts:46:5 - error TS1070: 'public' modifier cannot appear on a type member.

46     public custom?: CustomItemData<T>
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:11:5 - error TS1070: 'public' modifier cannot appear on a type member.

11     public id: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:16:5 - error TS1070: 'public' modifier cannot appear on a type member.

16     public name: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:21:5 - error TS1070: 'public' modifier cannot appear on a type member.

21     public price: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:26:5 - error TS1070: 'public' modifier cannot appear on a type member.

26     public message: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:31:5 - error TS1070: 'public' modifier cannot appear on a type member.

31     public description: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:36:5 - error TS1070: 'public' modifier cannot appear on a type member.

36     public maxAmount: number
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:41:5 - error TS1070: 'public' modifier cannot appear on a type member.

41     public role: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:46:5 - error TS1070: 'public' modifier cannot appear on a type member.

46     public date: string
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/ItemData.d.ts:51:5 - error TS1070: 'public' modifier cannot appear on a type member.

51     public custom: CustomItemData<T>
       ~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/RewardCooldownData.d.ts:8:11 - error TS2709: Cannot use namespace 'TimeObject' as a type.

8     time: TimeObject
            ~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/RewardObject.d.ts:3:10 - error TS2616: 'RewardCooldownData' can only be imported by using 'import RewardCooldownData = require("./RewardCooldownData")' or a default import.

3 import { RewardCooldownData } from './RewardCooldownData'
           ~~~~~~~~~~~~~~~~~~

node_modules/discord-economy-super/mongodb/typings/interfaces/RewardObject.d.ts:3:36 - error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.

3 import { RewardCooldownData } from './RewardCooldownData'

Module Issue

i installed it set it up and when try boot my bot it gave this:
node:internal/modules/cjs/loader:930
throw err;
^

Error: Cannot find module '../structures/Errors'
Require stack:

  • /home/raspberryrbx/Desktop/RBXBot-Private/node_modules/discord-economy-super/src/managers/BankManager.js
  • /home/raspberryrbx/Desktop/RBXBot-Private/node_modules/discord-economy-super/src/index.js
  • /home/raspberryrbx/Desktop/RBXBot-Private/node_modules/discord-economy-super/index.js
  • /home/raspberryrbx/Desktop/RBXBot-Private/index.js

error verification

my code:

async execute({ inter }) {
		const daily = await eco.rewards.getDaily(inter.user.id, inter.guild.id);

		if (!daily.claimed) {
			const embedNoDaily = new EmbedBuilder()
				.setDescription('result')
				.setColor('#d72b07');
			await inter.reply({ embeds: [embedNoDaily] });
		}
		const embedDaily = new EmbedBuilder()
			.setDescription(`${daily.reward}`)
			.setColor('#d72b07');
		await inter.reply({ embeds: [embedDaily] });
    }}

I'm using discord-economy-super 1.7.6 where it has the Status -> claimed update
the error is the following: it does not check or save the daily or any other Cooldown, I am using mongoDB with the example configuration, in version 1.7.4 with daily.status it works normally, it just happens in this specific version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.