Donator features and fixes
Changes
New features
I'm pleased to announce the availability of the following new functionality within the server donation tool:
- Donation perks are now automatically redeemed to donators when possible (#41). This is only done when the donation was made for the donator itself (not as a gift) and only, if it was not redeemed already (in case a donator wants to open the donation overview later).
- A donator can now complete a pending subscription or cancel it (e.g. when they accidentally closed the PayPal "Approve subscription" tab or decided to not subscribe while already being in the payment screen) (#39).
- A new donation notification hook was added (
DONATED_PUBLIC), which can be used to send a notification to a public Discord channel. It does not contain sensitive information by default (except the Discord username of the donator). The message can be adjusted by server owners with the message keyNOTIFICATIONS_PAYMENT_SUCCESSFUL_PUBLIC_DESCRIPTION. See the documentation for message overrides for more information regarding this. (#42)
Other changes
- Donators can now buy a package as a gift, even when they are subscribed to this package
- Fixed an issue where donations in currencies other than USD did not work (#36)
- Fixed an error that made the app crash when a donation link was opened which was redeemed by another Steam account already
- Fixed subscription plans in PayPal did not contain the package name of the package they were for
- Fixed an issue where the tool crashed when the discord user was not in the discord server of the community and a redeem of a perk failed
- Internally cleanup uncompleted donations
- Fixed an issue that could result in a crash when starting the tool, when a database migration was due to be done. See the recent releases for more detail (Update notes).
Changes to Perks
No changes made to perks.
Changes to the config.yml
- In
discord.notifications.typesa new type is allowed:DONATED_PUBLIC
Update notes
In order to update to this release, follow these steps (additionally to any steps mentioned in the official documentation):
- Ensure you have NodeJS version 16.6 or higher installed. You can check that by running
node -vin your command line window. If it is not a supported version, first upgrade NodeJS before continuing to upgrade the Donation tool. If you do not update NodeJS first, the donation tool will not start and bring your donation website offline! - Download the source code of this release (either with a
git pullto the tag or by downloading the zip file from this page) - Run
npm cito update the required dependencies