Skip to content

Client.import()

github-actions[bot] edited this page Sep 30, 2024 · 8 revisions

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" });      


🛈 Client

🛈 AddonService

🛈 AttachmentService

🛈 ChannelService

🛈 CommandService

🛈 ComponentService

🛈 ErrorService

🛈 EventService

🛈 ExpressionService

🛈 GuildService

🛈 LogService

🛈 MessageService

🛈 PermissionService

🛈 RoleService

🛈 StorageService

🛈 TypeService

🛈 UserService

🛈 UtilService

🛈 VoiceService


Clone this wiki locally