3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-24 18:15:02 +00:00

Add proper types to sendErrorMessage()

This commit is contained in:
Dragory 2021-01-17 21:21:18 +02:00
parent 21b09b3413
commit 621c8584fd
23 changed files with 123 additions and 78 deletions

View file

@ -18,7 +18,8 @@ export const ScheduledPostsShowCmd = postCmd({
scheduledPosts.sort(sorter("post_at"));
const post = scheduledPosts[args.num - 1];
if (!post) {
return sendErrorMessage(pluginData, msg.channel, "Scheduled post not found");
sendErrorMessage(pluginData, msg.channel, "Scheduled post not found");
return;
}
postMessage(pluginData, msg.channel as TextChannel, post.content, post.attachments, post.enable_mentions);