Comments (2)
I've had that problem before, the user field in the PRESENCE_UPDATE
payload only has the id field (unless the user has changed their discrim, avatar, name, etc) it has been fixed in the develop branch. the username and discriminator are now an Option type.
from discordnim.
I believe most (if not all) object fields should be Option
s on the develop branch. So try that instead for now.
My plans for now is to rewrite the whole library from scratch. I'm unsatisfied with more or less all of it, but to make it future proof I'm writing a JSON parser/marshaller that isn't stupid. I will make a separate branch for the updated library sometime soon and push progress there instead which will eventually replace the current master branch.
from discordnim.
Related Issues (20)
- TODO: Cache improvements
- Error: undeclared field: 'reqPing' HOT 2
- Possible websocket issue when bot is in a large guild HOT 2
- Investigate "read of failed future" error HOT 6
- Insane CPU usage HOT 4
- Readme Example Broken HOT 1
- Doesn't compile with nim 0.18.0 HOT 3
- s.channelMessageSend doesn't work for me HOT 6
- Error: type mismatch: got <seq[pointer], nil> HOT 1
- Quick question about creating my own Nim Discord library HOT 1
- URL error HOT 6
- Exception: Incorrect JSON kind
- Add discord rest error feature
- Illegal storage access when sending message
- JSON ambiguous call
- Error while waiting for websocket data HOT 3
- zlib1.dll
- session.handleDispatch: fails to handle a MessageCreate event if the payload contains an embed
- Presences with a null game causes crash HOT 3
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 discordnim.