192fec6952
Internally, the thread_messages table's body column's type was undefined in sqlite. This is because it was set to mediumtext, but sqlite doesn't have that type. Because of that, sqlite treated the column as a numeric column. Sqlite also allows storing text data in numeric columns (because reasons), so in most cases everything worked fine. It was only when storing an actual number, like an ID, that it was also *treated* as a number. And since snowflake IDs are larger than the maximum safe integer in JavaScript, the stored ID could get rounded when retrieving data from the database. |
||
---|---|---|
.github | ||
attachments | ||
db | ||
docs | ||
logs | ||
src | ||
.editorconfig | ||
.eslintrc | ||
.gitignore | ||
.npmrc | ||
.nvmrc | ||
CHANGELOG.md | ||
LICENSE.md | ||
README.md | ||
config.example.ini | ||
knexfile.js | ||
modmailbot-pm2.json | ||
package-lock.json | ||
package.json | ||
start.bat |
README.md
Modmail for Discord
Modmail Bot is a bot for Discord that allows users to DM the bot to contact the server's moderators/staff without messaging them individually or pinging them publically on the server. These DMs get relayed to modmail threads, channels where staff members can reply to and talk with the user. To the user, the entire process happens in DMs with the bot.
Inspired by Reddit's modmail system.
Getting started
- 🛠️ Setting up the bot
- 🙋 Frequently Asked Questions
- 📝 Configuration
- 🤖 Commands
- 📋 Snippets
- 🧩 Plugins
- Release notes
- Community Guides & Resources
Support server
If you need help with setting up the bot or would like to discuss other things related to it, join the support server on Discord here: