-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: Log users that joins guild #75
base: main
Are you sure you want to change the base?
Conversation
.AppendLine($"{Format.Bold("`Mention:`")} <@{user.Id}>") | ||
.AppendLine($"{Format.Bold("`GuildId:`")} {log.GuildId}") | ||
.AppendLine($"{Format.Bold("`IsBot: `")} {user.IsBot}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should also just be fields
.AddField("AccountCreationDate", user.CreatedAt.ToUniversalTimestamp(), true) | ||
.AddField("JoinDate", log.JoinDate?.ToUniversalTimestamp(), true) | ||
.AddField("FirstJoinDate", log.FirstJoinDate?.ToUniversalTimestamp(), true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add spaces in here
public DateTimeOffset LogDate { get; set; } | ||
public GuildUserEntity User { get; set; } | ||
public DateTimeOffset? FirstJoinDate { get; set; } | ||
public DateTimeOffset? JoinDate { get; set; } | ||
public ulong GuildId { get; set; } | ||
public ulong UserId { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a blank line in between them for consistency
FirstJoinDate = user.JoinedAt; | ||
JoinDate = userJoinDate; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The JoinDate
can be inferred from the LogDate
so the only important thing is the FirstJoinDate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good so far, maybe name the JoinLoggingBehavior
to GuildUserBehavior
for in the future when leave logs are added, as well as some checking for when members join such as account age, not just logging.
d018f0c
to
7ca34a0
Compare
2d8b095
to
c8f7d9a
Compare
6cc092c
to
2068250
Compare
819a4ad
to
bc91328
Compare
b8fe246
to
c7c0ae8
Compare
4543d97
to
ebf7bb4
Compare
a2fe971
to
7466300
Compare
No description provided.