Skip to content

Commit

Permalink
Merge pull request #1 from CaptainM777/atla
Browse files Browse the repository at this point in the history
Hawky V2
  • Loading branch information
kdspa authored Jul 10, 2024
2 parents 8a83f6b + 5a1b49b commit 3c0e626
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/node_modules
/welcome.png
/update.sh
.env

# Config files
/config.*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Dragory/modmailbot"
"url": "https://github.com/atlacord/modmailbot"
},
"dependencies": {
"ajv": "^8.12.0",
Expand Down
2 changes: 1 addition & 1 deletion src/data/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ async function createNewThreadForUser(user, opts = {}) {

if (config.rolesInThreadHeader && guildData.member.roles.length) {
const roles = guildData.member.roles.map(roleId => guildData.guild.roles.get(roleId)).filter(Boolean);
headerItems.push(`ROLES **${roles.map(r => r.name).join(", ")}**`);
headerItems.push(`ROLES **${roles.sort((a, b) => b.position - a.position).map(r => `<@&${r.id}>`).join(", ")}**`);
}

const headerStr = headerItems.join(", ");
Expand Down

0 comments on commit 3c0e626

Please sign in to comment.