Comments (3)
You have quite a couple options here. You can:
- use the promise-based version of readFile from
fs/promises
- move the client initialization into the callback of readFile
- use readFileSync
This isn't an issue with the library, this is an issue with your usage of the library. As such, you should move this over to the guilded server.
from guilded.js.
i know this is not an issue, i choosed enhancement tag when i created issue. I'll try these out. And I didn't know you had a server lol
from guilded.js.
well the solution was simple. i just forgot
const token = require("./src/values/guildedtoken.json"); // reading file
const client = new Guilded.Client({ token: token.guildedtoken }); // setting client
from guilded.js.
Related Issues (20)
- Allow for user-supplied webhook body HOT 2
- Add support for mentions HOT 4
- WebhookClient throws error if masquerade isn't provided. HOT 2
- add level and exp to member class HOT 1
- Websocket Ping is sometimes null HOT 1
- msg.author and msg.member are always null HOT 2
- Feature request: add `channel.createWebhook()` function HOT 2
- Add function(s) for getting emojis and roles in a server HOT 2
- Send images HOT 4
- Optional parameters are displayed as required parameters. HOT 1
- [ Deleted ] HOT 3
- Website Not Responsive if width is below 1000px HOT 2
- De-complex event types
- Experimental Fetch API Error HOT 3
- Announcements structure and manager
- Comments structure (announcements, calendar event, docs, forum)
- Full event coverage
- Syntax error HOT 2
- Looking for maintainers! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guilded.js.