LogoRobo.js
Packages@robojs/giveaways

GuildSettings

Interface: GuildSettings

Per-guild configuration envelope that customizes giveaway behaviour.

Settings are merged with DEFAULT_SETTINGS at runtime to ensure a complete object is always available to commands and utilities.

Properties

PropertyTypeDescription
defaults{ buttonLabel: string; dmWinners: boolean; duration: string; winners: number; }Default attributes applied to newly created giveaways.
defaults.buttonLabelstringCustom label displayed on the entry button component.
defaults.dmWinnersbooleanWhether winners should receive direct messages when selected.
defaults.durationstringDefault ISO 8601 duration string (e.g. 1h, 2d).
defaults.winnersnumberDefault number of winners for /giveaway start.
limits{ maxDurationDays: number; maxWinners: number; }Safety limits enforced across all giveaways within a guild.
limits.maxDurationDaysnumberMaximum giveaway duration expressed in whole days.
limits.maxWinnersnumberUpper bound on the number of winners that can be configured.
restrictions{ allowRoleIds: string[]; denyRoleIds: string[]; minAccountAgeDays: null | number; }Guild-wide entry requirements enforced for every giveaway.
restrictions.allowRoleIdsstring[]Role IDs that are explicitly allowed to enter; empty means all roles allowed.
restrictions.denyRoleIdsstring[]Role IDs that are prevented from entering.
restrictions.minAccountAgeDaysnull | numberMinimum required Discord account age in days, or null to disable.

On this page