Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Make sure you are running at least v3.3.0 of Modmail.
in your config.ini file, create a new line and add
```
plugins[] = npm:MMPlugins/ReactionThreads
reactionThreads-ownerId = <yourUserId or adminRoleId>
reactionThreads-ownerId = <yourUserId or adminRoleId> (`MM_REACTION_THREADS_OWNER_ID` for .env files)
extraIntents[] = guildMessageReactions
```
to your config and replace `<yourUserId>` with your user ID. Only the person with this ID is allowed to add/remove reactions.
Expand Down
2 changes: 1 addition & 1 deletion reactionThreads.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = function ({ bot, config, commands, knex, threads }) {
let refreshTimeout = null;

// Check if ownerId is specified in the config, warn otherwise
const ownerId = config["reactionThreads-ownerId"];
const ownerId = config["reactionThreads-ownerId"] ??= config["reactionThreadsOwnerId"];
if (typeof ownerId === "undefined") {
console.info(
'[ReactionThreads] No ownerId specified in config via "reactionThreads-ownerId", everyone (with inboxServerPermission) will be able to add new reactions!',
Expand Down