
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@tryforge/forge.giveaways
Advanced tools
ForgeGiveaways is a lightweight, flexible, and reliable extension for managing giveaways. Fully customizable features let you automate, track, and control every giveaway seamlessly.
ForgeGiveaways is a lightweight, flexible, and reliable extension for managing giveaways. Fully customizable features let you automate, track, and control every giveaway seamlessly.
⚠️ Warning
ForgeGiveaways requires the extension ForgeDB installed in order to operate.
Run the following command to install the required npm packages:
npm i @tryforge/forge.giveaways @tryforge/forge.db
Here’s an example of how your main file should look:
const { ForgeClient } = require("@tryforge/forgescript")
const { ForgeGiveaways } = require("@tryforge/forge.giveaways")
const { ForgeDB } = require("@tryforge/forge.db")
const giveaways = new ForgeGiveaways({
events: [
"giveawayStart",
"giveawayEnd"
],
useDefault: true
})
const client = new ForgeClient({
...options // The options you currently have
extensions: [
giveaways,
new ForgeDB()
]
})
client.commands.load("commands")
giveaways.commands.load("giveaways")
client.login("YourToken")
ℹ️ Note
View all available client options here.
You can disable the default messages by setting useDefault: false in the client options, and override them with custom messages emitted through events. Use desired functions to retrieve information about the current giveaway.
⚠️ Warning
Only onegiveawayStartevent is allowed per client instance!
When using custom start messages, your event must return the message ID of the sent giveaway message. To ensure that only the message ID is returned (and no additional text), use the $return[] function.
module.exports = {
type: "giveawayStart",
code: `
$return[
$sendMessage[$giveawayChannelID;
$addContainer[
$addTextDisplay[### 🎉 Giveaway 🎉]
$addSeparator
$addTextDisplay[**Prize:** $giveawayPrize\n**Winners:** $giveawayWinnersCount]
$addSeparator
$addActionRow
$addButton[giveawayEntry;Join;Secondary;🎉]
;Green]
;true]
]
`
}
module.exports = {
type: "giveawayEnd",
code: `
$sendMessage[$giveawayChannelID;
$reply[$giveawayChannelID;$giveawayMessageID;true]
🏆 **Winners:** <@$newGiveaway[winners;>, <@]>
]
`
}
The custom ID for giveaway entry buttons must follow this exact format:
giveawayEntry
See the giveawayStart example above for reference.
Through the entry-related events, you can send custom responses directly to the current interaction context.
module.exports = {
type: "giveawayEntryAdd",
code: `
$interactionReply[
$ephemeral
You have joined this giveaway as **$ordinal[$@[,]giveawayEntries]** participant!
]
`
}
module.exports = {
type: "giveawayEntryRemove",
code: `
$interactionReply[
$ephemeral
You have left this giveaway!
]
`
}
FAQs
ForgeGiveaways is a lightweight, flexible, and reliable extension for managing giveaways. Fully customizable features let you automate, track, and control every giveaway seamlessly.
We found that @tryforge/forge.giveaways demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.