-
Notifications
You must be signed in to change notification settings - Fork 21
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/317/verbose /admin announce summary #441
Conversation
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.
Awesome!
I think we need to replace the discord ids with user names before it effectively resolves #317.
This can be resolved when #377 is implemented. We can't use discord usernames if the user isn't present in the discord.
Would this add a significant overhead to the process? |
How could the user not be on Discord? In order to be a quantifier you need to activate your account, linking |
People can leave the discord server after activating, or they can be kicked/banned for some reason, or their discord account might have been deleted. |
Sure. But we will still have a |
|
also, how to type this properly? - interface FailedToDmUsersList {
invalidUsers: string[];
notFoundUsers: string[];
closedDmUsers: string[];
unknownErrorUsers: string[];
}
const failed: FailedToDmUsersList = {
invalidUsers: <string[]>[],
notFoundUsers: <string[]>[],
closedDmUsers: <string[]>[],
unknownErrorUsers: <string[]>[]
}; |
Since you already defined the type in the interface, you can just create an object that implements that type. The type So like this:
|
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.
awesome!
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.
Looks great @Vyvy-vi! I made two small text changes. Now merging.
Resolves #317
This PR adds a summary report file that is sent when the /admin announce command is used. We might need to refactor this a bit in future and use the praise username instead of discord ids.