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

Fix the error caused by trying to cast a datetime to datetime #582

Merged
merged 1 commit into from
May 4, 2024

Conversation

jb3
Copy link
Collaborator

@jb3 jb3 commented May 4, 2024

Users have reported a state machine error caused by what looks to be the
guild upsert process calling the Nostrum.Util.maybe_to_datetime
function on a value that is already a datetime.

We can resolve this by just returning datetimes as is from that function
if we are passed one as an argument.

Users have reported a state machine error caused by what looks to be the
guild upsert process calling the `Nostrum.Util.maybe_to_datetime`
function on a value that is already a datetime.

We can resolve this by just returning datetimes as is from that function
if we are passed one as an argument.
@jb3 jb3 merged commit dfe11f1 into master May 4, 2024
9 checks passed
@jb3 jb3 deleted the jb3/fix-statem-datetime-error branch May 4, 2024 19:21
@jb3
Copy link
Collaborator Author

jb3 commented May 4, 2024

Thanks!

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

Successfully merging this pull request may close these issues.

1 participant