Add CreatedAt property #1405
Unanswered
thefakewater
asked this question in
Q&A
Replies: 1 comment 1 reply
-
If I'm not mistaken, Discord uses Snowflake ID for (almost?) everything, including user ID. So to get CreatedAt of a user, guild, channel, message, all you need is to parse it's ID: package main
import (
"fmt"
"github.com/bwmarrin/discordgo"
)
func main() {
createdAt, err := discordgo.SnowflakeTimestamp("241129119688032257")
if err != nil {
panic(err)
}
fmt.Println(createdAt)
} And as long as you are SURE that id is correct and not empty, you can skip error checking. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently there is no way to get the user account creation date.
Beta Was this translation helpful? Give feedback.
All reactions