DiscordLinks

by Mad
for 7 Days to Die
Posts configurable rich text links with inline images to Discord. Updates the same message daily instead of creating new ones.
communityTakaro v0.4.9

Components Overview

1
config
0
commands
0
hooks
1
Cron Jobs
1
functions
0
permissions

New Module: DiscordLinks

December 15, 2025
Added DiscordLinks to the repository

Configuration

Configure this module using the schemas below. The JSON schema defines the data structure, while the UI schema customizes how the configuration form is displayed.

Configuration Schema

Configuration Properties (4)

discordChannelId*string
Discord Channel ID

The Discord channel ID where links will be posted

Constraints: minLength: 17, maxLength: 20
messageColornumber
Message Color

Decimal color code for the embed (0-16777215)

Default: 5814783
Constraints: min: 0, max: 16777215
decorativeHeaderstring
Decorative Header

Optional decorative text at the top of the message

Default: ✦━━━━━━━━━━━━━━✦
links*array
Links

List of links to display

Constraints: minItems: 1

UI Schema

No configuration properties defined. This module uses default settings.

About Configuration Schemas

The Configuration Schema defines the structure and validation rules for module settings. The UI Schema customizes how the configuration form is displayed in the Takaro interface, including field ordering, labels, and input types.

Scheduled Jobs (1)

These jobs run automatically on a schedule defined by cron expressions. Each job executes JavaScript code at specific times or intervals.

Daily Link Update

0 12 * * *Schedule

Description

Updates the Discord message with daily links once per day

Schedule Details

Cron Expression
0 12 * * *
Human-Readable Schedule

At minute 0 at 12 PM on every day of the month in every month on every day of the week

Function Implementation

Daily Link Update Function

JAVASCRIPT

Cron Expression Format

minute hour day-of-month month day-of-week

Each field can contain numbers, ranges (1-5), lists (1,3,5), or wildcards (*). Use */n for intervals (e.g., */5 for every 5 units).

About Scheduled Jobs

Cron jobs allow your module to execute code automatically on a schedule. Each job has a cron expression that defines when it runs, and a JavaScript function that executes at those times. Jobs run server-side and can perform maintenance tasks, send notifications, or update game state automatically.

Functions (1)

Reusable JavaScript functions that can be imported and used by other module components like commands, hooks, and cron jobs. These promote code reuse and modularity.

postDailyLinks

functionReusable Component

Description

Posts or updates a Discord message with configurable links and images

Function Implementation

postDailyLinks Function

JAVASCRIPT

Import Usage

Import: import { postDailyLinks } from './utils';

About Module Functions

Functions are reusable JavaScript components that can be imported and used by commands, hooks, and cron jobs within your module. They promote code reuse, improve maintainability, and allow you to organize complex logic into modular pieces. Functions must be exported with proper ES6/CommonJS syntax to be importable by other components.