support threads

This commit is contained in:
Aubrey 2025-01-30 16:37:36 -06:00
parent 665ff35d6b
commit f9d800be37
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -50,6 +50,9 @@
type = lib.types.str;
description = "The webhook to post the messages to";
};
threadId = lib.mkOption {
type = lib.types.str;
};
users =
lib.mkOption {
type = lib.types.listOf lib.types.attrs;

View file

@ -19,6 +19,7 @@ for (let user of config.users) {
await webhook.send({
content: message,
threadId: config.threadId,
username: "WaniKani Reminder",
avatarURL: "https://pbs.twimg.com/profile_images/1213575248911552512/WP11ESTy_400x400.jpg",
allowedMentions: {