Client.import() - shysolocup/noscord.js GitHub Wiki

dynamically imports services with a custom syntax that
lets you mix and match types

notes:

  • automatically defines the services you import

Function Sync

Arguments:

  • ...imports Any
    all of the services you want to import
    possible import styles:
  • String: name of the service
  • Array: array of service names
  • Object: lets you set the def name


JS
client.import("users", "util", [ "guilds", "channels" ], { com: "commands", exp: "expressions" });      


⚠️ **GitHub.com Fallback** ⚠️