opened
twoscott
username_0
Just some methods I thought would be convenient. I haven't used most of these structs yet but I figured the CreatedAt methods should be on any object that has a snowflake directly identifying it (not sure if I missed any).
discord: Helper methods & doc fixes
issue
created
diamondburned
username_1
Is there a reason why `CreatedAt` returns `discord.Timestamp` and not `time.Time`?
comment
created
twoscott
username_0
I honestly just wasn't sure which to use, figured you might prefer to use `discord.Timestamp` to keep consistency but I could see `time.Time` working just as well if not better
comment
created
diamondburned
username_1
`discord.Timestamp` would indeed be more consistent, but since these are methods, it doesn't really matter. The type was made just so JSON can be marshaled properly, so it doesn't matter as far as usage goes.
comment