-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation improvement: Message nonce #539
Comments
In an upcoming Discord API change, the enforcement of this parameter will become mandatory: I think all we really need to do is on an outbound message attach a random string, up to 25 characters, or a snowflake that we generate. We don't need to store this, we just need to attach it to outbound messages. Of course, we should also let users override this if they desire. We should set |
Our message struct has a lot of fields, and most of them are just a waste of
memory, processing power, and my energy.
One field whose purpose, besides wasting memory, processing power and my
energy, is unclear to me, is the
nonce
field of the message struct. Thedocumentation helpfully states:
As a user, this explains nothing. It can be a string or it can be
nil
. If itis a string, does it contain a written, GPG-signed confirmation from Jason
Citron that the message was successfully sent? Does he manually sign these by
hand, or does he have a bot in the Gateway that does it for him? Is it instead
a notice of delivery stamped off by Craig's favourite cat "I don't think
favourites"? What can users expect from this? Is this even something that we
should surface to the user?
The text was updated successfully, but these errors were encountered: