mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 09:35:02 +00:00
Fix thread channels not working for reminders
This commit is contained in:
parent
f733f081e0
commit
6465399dbd
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ export async function postDueRemindersLoop(pluginData: GuildPluginData<Reminders
|
||||||
const pendingReminders = await pluginData.state.reminders.getDueReminders();
|
const pendingReminders = await pluginData.state.reminders.getDueReminders();
|
||||||
for (const reminder of pendingReminders) {
|
for (const reminder of pendingReminders) {
|
||||||
const channel = pluginData.guild.channels.cache.get(reminder.channel_id as Snowflake);
|
const channel = pluginData.guild.channels.cache.get(reminder.channel_id as Snowflake);
|
||||||
if (channel && channel instanceof TextChannel) {
|
if (channel && channel.isText()) {
|
||||||
try {
|
try {
|
||||||
// Only show created at date if one exists
|
// Only show created at date if one exists
|
||||||
if (moment.utc(reminder.created_at).isValid()) {
|
if (moment.utc(reminder.created_at).isValid()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue