-
-
Notifications
You must be signed in to change notification settings - Fork 82
DiscordSRV
VotingPlugin can send reward messages and maintain all-time, monthly, weekly, and daily top-voter leaderboards through DiscordSRV.
Availability: DiscordSRV leaderboards and the manual message-ID clear command are available in the latest public release, 7.1.1. The
AutoRecoverMessageOnFailureoption and automatic recovery behavior are available only in development builds containing VotingPlugin PR #1542, merged after 7.1.1.
Install and configure DiscordSRV first, then enable the integration in
Config.yml:
DiscordSRV:
Enabled: true
TopVoter:
# Development builds after 7.1.1: recover if a stored message was deleted
AutoRecoverMessageOnFailure: true
Monthly:
Enabled: true
NewMessageOnUpdate: false
Channel: 123456789012345678
Title: 'Top Voters of the Month'Replace Channel with the numeric Discord channel ID. The same structure is
available under AllTime, Weekly, and Daily.
NewMessageOnUpdate controls whether VotingPlugin edits one leaderboard
message or keeps posting new messages:
| Value | Behavior |
|---|---|
false |
Store the message ID and edit that message during later updates. |
true |
Post a new message on each update instead of maintaining one stored message. |
When NewMessageOnUpdate: false, deleting the stored Discord message used to
leave later edits targeting an invalid ID. With
AutoRecoverMessageOnFailure: true (the default), an Unknown Message response
causes VotingPlugin to clear the stale ID, post one replacement, and persist
the replacement ID for later updates.
Recovery is serialized per leaderboard so overlapping updates do not create multiple replacement messages.
Use the admin command when automatic recovery is disabled or when you need to force the next update to create a message:
/av ClearDiscordMessageID Monthly
Use AllTime, Monthly, Weekly, or Daily for the final argument. The
permission is:
VotingPlugin.Commands.AdminVote.ClearDiscordMessageID
- Channel not found: verify the numeric channel ID and confirm DiscordSRV's bot can see the channel.
- Missing permissions: allow the bot to view the channel, send messages, and embed links.
-
Deleted leaderboard does not return: confirm
AutoRecoverMessageOnFailure: trueandNewMessageOnUpdate: false, then use the manual clear command if necessary. -
Other edit errors: automatic recovery is intentionally limited to
Discord's
Unknown Messageresponse. Correct channel, permission, or DiscordSRV connection errors instead of repeatedly clearing the stored ID.
- Vote Milestones
- Vote Streak System
- Vote Reminders β Current System
- Legacy Vote Reminding
- Vote Broadcast System
- Vote Logging
- Webhooks
- Time Changes
- Month Date Totals
- VoteShop
- Rewards Overview β Start Here
- Reward System Concepts
- Reward File Format
- Where to Set Rewards
- All Reward Possibilities
- Reward Examples
- Delayed Reward Command
- World Example
- VotingPlugin-Specific Rewards
- Commands & Permissions
- API
- PlaceholderAPI Placeholders
- Minecraft Server Lists
- Bedrock Player Support
- Transferring Data Storage