Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
How to reference client in main file? - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
•
2y ago
•
7 replies
mei ♡
How to reference client in main file?
I am trying to get
<Client>.users
<Client>.users
from the index
.ts but I am unsure as to how I would get around to doing that
.
.
Solution
if youre using sapphire
, you can do
this.container.client
this.container.client
or import the container from the framework and then
container.client
container.client
Jump to solution
Sapphire - Imagine a Framework
Join
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,261
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to push incomplete .env file to repo?
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
client permissions failing to resolve in channel
S-IaF
Sapphire - Imagine a Framework / sapphire-support
10mo ago
how to change the client on the container's type to my custom client
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Two Commands In One File
S-IaF
Sapphire - Imagine a Framework / sapphire-support
2y ago