Skip to content

Discord donate command for better interaction with discord users

Compare
Choose a tag to compare
@FlorianSW FlorianSW released this 02 Aug 16:33
· 106 commits to main since this release

Changes

New features

I'm pleased to announce the availability of the following new functionality within the server donation tool:

  • A new feature utilizing Discord Slash Commands allows your discord users to easier interact with the Donation tool. It reduces the effort of a discord user to open a webpage before it is absolutely necessary. The discord donate command will allow a discord user to select a donation package and the preferred payment method before opening the webbrowser to finish the transaction.
  • The default theme was changed in the used colors and some other smaller design adjustments.
  • When a payment in PayPal is refunded, the perks of the donation will now be refuned for the donator.

Other changes

  • An avatar image is now shown next to the account the user is logged in with (Steam and Discord), if there is any.
  • The discord "Perks redeemed message" now contains the perks the package contains, as well as the perks the donator redeemed.
  • The user logout and user profile links in the header are not shown anymore when the user is not logged in.
  • There are two more notification types for the refunds feature, which is not enabled by default: SUCCESSFUL_REFUND and REFUND_ERROR. If you want to get these notifications as well, add these types to your discord.notifications.types array in the config.yml

Changes to Perks

Changes to the config.yml

  • New configuration options were added to the discord config object to support the new Discord Slash Commands feature. The options are within the commands key.

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 -v in 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 pull to the tag or by downloading the zip file from this page)
  • Run npm ci to update the required dependencies