feat(permissions): Adds server permissions
This commit is contained in:
parent
d46bbd84c5
commit
cf9c88a2d6
24 changed files with 415 additions and 69 deletions
|
|
@ -73,14 +73,12 @@ export class ReminderEvent implements TimedEvent {
|
|||
)
|
||||
);
|
||||
|
||||
const config = groupConfig.getCompleteConfiguration();
|
||||
const targetChannel = config.channels?.playdateReminders;
|
||||
|
||||
const targetChannel = groupConfig.getConfigurationByPath("channels.playdateReminders").value;
|
||||
if (!targetChannel) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return this.sendReminder(playdate, targetChannel);
|
||||
return this.sendReminder(playdate, <ChannelId>targetChannel);
|
||||
}, this)
|
||||
|
||||
await Promise.all(promises);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue