-
Notifications
You must be signed in to change notification settings - Fork 1
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
Change checkin args #45
Conversation
Stuart6557
commented
Oct 14, 2023
- Changed 'now' parameter to 'public', false by default
- Removed filtering for ongoing events only
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.
Changes are looking good! Some comments/questions before I think we can merge/deploy:
src/Client.ts
Outdated
'GUILDS', | ||
'GUILD_INTEGRATIONS', | ||
'GUILD_WEBHOOKS', | ||
'GUILD_MESSAGES', | ||
'GUILD_MEMBERS', | ||
'DIRECT_MESSAGES', | ||
'GUILD_MESSAGE_REACTIONS', | ||
'DIRECT_MESSAGE_REACTIONS', | ||
GatewayIntentBits.Guilds, | ||
GatewayIntentBits.GuildIntegrations, | ||
GatewayIntentBits.GuildWebhooks, | ||
GatewayIntentBits.GuildMessages, | ||
GatewayIntentBits.DirectMessages, | ||
GatewayIntentBits.GuildMessageReactions, | ||
GatewayIntentBits.DirectMessageReactions, |
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.
Why are these changing in this PR? Does it work without these changes?
src/commands/Checkin.ts
Outdated
* the widescreen slide QR (true). | ||
* This Command DM's the caller the checkin code and Express Checkin link for any current and | ||
* upcoming events in today's timeframe. Optional argument `public` makes the embed with the | ||
* checkin codes be returned in the same chat as the Command message instead of DMs. Optinoal |
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.
nit:
* checkin codes be returned in the same chat as the Command message instead of DMs. Optinoal | |
* checkin codes be returned in the same chat as the Command message instead of DMs. Optional |
src/commands/Checkin.ts
Outdated
@@ -40,7 +40,7 @@ export default class Checkin extends Command { | |||
boardRequired: true, | |||
enabled: true, | |||
description: | |||
"Sends a private message with all check-in codes from today's events. Calling with `now` argument sends public embed of checkin code if any events are now live!", | |||
"Sends a private message with all check-in codes from today's events. Calling with `public` argument sends public embed of checkin code.", |
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.
Maybe here it should specify that public sends in the current channel instead of via DM?
src/commands/Checkin.ts
Outdated
@@ -85,10 +86,6 @@ export default class Checkin extends Command { | |||
// | |||
// We need two sets of arrays for "checkin": |
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.
Can update this comment and related ones: we don't need two sets of arrays for "checkin" anymore
src/config/config.ts
Outdated
'GUILDS', | ||
'GUILD_INTEGRATIONS', | ||
'GUILD_WEBHOOKS', | ||
'GUILD_MESSAGES', | ||
'GUILD_MEMBERS', | ||
'DIRECT_MESSAGES', | ||
'GUILD_MESSAGE_REACTIONS', | ||
'DIRECT_MESSAGE_REACTIONS', | ||
GatewayIntentBits.Guilds, | ||
GatewayIntentBits.GuildIntegrations, | ||
GatewayIntentBits.GuildWebhooks, | ||
GatewayIntentBits.GuildMessages, | ||
GatewayIntentBits.DirectMessages, | ||
GatewayIntentBits.GuildMessageReactions, | ||
GatewayIntentBits.DirectMessageReactions, |
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.
Same question as in Client.ts
src/types/.DS_Store
Outdated
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.
This file should be removed!
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.
LGTM 🚀