Skip to content

Commit

Permalink
add a comma in template config and document constructor for project l…
Browse files Browse the repository at this point in the history
…istener (#1192)

minor fix in project listener related to config and documentation
  • Loading branch information
ankitsmt211 authored Oct 30, 2024
1 parent 18c8f36 commit 0f04908
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/config.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"discordGuildInvite": "https://discord.com/invite/XXFUXzK",
"modAuditLogChannelPattern": "mod-audit-log",
"modMailChannelPattern": "modmail",
"projectsChannelPattern": "projects"
"projectsChannelPattern": "projects",
"mutedRolePattern": "Muted",
"heavyModerationRolePattern": "Moderator",
"softModerationRolePattern": "Moderator|Community Ambassador",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public final class ProjectsThreadCreatedListener extends ListenerAdapter impleme
.expireAfterAccess(2, TimeUnit.of(ChronoUnit.MINUTES))
.build();

/**
* Creates a new instance.
*
* @param config to work with the project related threads
*/

public ProjectsThreadCreatedListener(Config config) {
configProjectsChannelPattern = config.getProjectsChannelPattern();
}
Expand Down

0 comments on commit 0f04908

Please sign in to comment.