SinisterRectus / Discordia

Discord API library written in Lua for the Luvit runtime environment
MIT License
697 stars 143 forks source link

Fix Date class using wrong enum #323

Closed RiskoZoSlovenska closed 2 years ago

RiskoZoSlovenska commented 2 years ago

In commit https://github.com/SinisterRectus/Discordia/commit/c9838b0a58df262e98d27c0c05d1c39cfb77c695, the timestampStyle enum was added. In that same commit, the method Date:toMention() was also added, but this method references a dateTimeStyle enum, which does not exist and causes Discordia to throw an error when Date:toMention() is called. This pull request fixes this issue by having Date:toMention() correcly use the timestampStyle enum.