Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

change int64 -> null.Int64 #10

Open
wants to merge 239 commits into
base: yagpdb
Choose a base branch
from
Open

Conversation

Satty9361
Copy link

Similar to #9 changing to null.Int64 allows to disconnect users from voice channels in this case.

@jogramming
Copy link

Does the "string" tag work with null.Int64?

@Satty9361
Copy link
Author

That's correct. null.Int64 indeed does not work with string tag. I had two solutions in mind. One was to use null.String similar to #9 however I thought it might be better to define a custom datatype and use it in all places where nullable IDs are allowed for ease of use.

Let me know what you think and in that case probably the field in #9 can also be updated to use *nullIntID.

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

Successfully merging this pull request may close these issues.

3 participants