A Discord bot for getting around the 50 pinned message limit. It sends pinned messages from a channel to a dedicated pin channel.
- Install Java 17 or higher.
- Create a Discord bot and get its token. Give the bot the following permissions:
- Create a file called
config.json
in the same directory as the bot's JAR file with the following content, replacing123456789
with your bot's token:
{
"token": "123456789"
}
- Run the bot's JAR file by running
java -jar pin-bot-VERSION.jar
in the command line, replacingVERSION
with the version of the bot.
- Run the
/pin-channel set
command to set the channel where pinned messages from the current channel are sent to (requires the Manage Channels and Manage Messages permissions). - Make sure the channel where pinned messages are being sent from has a free pin slot, i.e. there are at most 49 pinned messages in it.
- To send a message to the pin channel, pin it as you normally would. The bot will automatically unpin it and send it to the pin channel.