Skip to content
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

How to use timestamp? #17

Open
ReckerXF opened this issue Mar 26, 2019 · 6 comments
Open

How to use timestamp? #17

ReckerXF opened this issue Mar 26, 2019 · 6 comments

Comments

@ReckerXF
Copy link

I am doing $embed->timestamp();

What am I doing wrong? I can't seem to find how to print out the current timestamp.

@nopjmp
Copy link
Owner

nopjmp commented Mar 27, 2019

You need to put a ISO8601 timestamp into the function parameter.

$embed->timestamp(date("c")) would put the current time into timestamp field in the right format.

@ReckerXF
Copy link
Author

Alright thanks so much! May I recommend that you add it to the readme.md just so people know ;p

@nopjmp
Copy link
Owner

nopjmp commented Mar 28, 2019

Probably need to write actual documentation.

@DenizGelion
Copy link

DenizGelion commented Feb 18, 2020

Nice Avatar @nopjmp ;)
But yeah, a little documentation would be really nice! I took your package because I couldn't get LabyMod/discord working with my Symfony 4.4 application. Sadly using your package is a little trial and error but also a good showcase. Thanks a bunch!

EDIT: Almost 'nevermind'. I used everything you've got in there and it's actually really simple to use.

@fieu
Copy link

fieu commented Jul 21, 2021

@nopjmp Thoughts on this? It may sound bad, but your library is self-explanatory. I see no reason to add documentation.

I've used it on multiple projects and have not once had to come back and make an issue or look through them. It's a very simple wrapper library.

@nopjmp
Copy link
Owner

nopjmp commented Jul 21, 2021

Really it's more about user friendliness for people not familiar enough with PHP, Discord API, or other factors. It's low on the priority list for me seeing as this has been open for over a year. It's mostly out there for people to discover if they get stuck or want to help document the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants