Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Rost committed Oct 12, 2024
1 parent 8f430e6 commit bcb213e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion RcGcDw_buttons
2 changes: 1 addition & 1 deletion dashboard/functions/rcscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ function update_rcscript(res, userSettings, guild, type, settings) {
settings.display = parseInt(settings.display, 10);
settings.buttons = settings.buttons?.split('|').filter( button => {
return ( buttonsExists && button_types.includes( button ) );
} ).sort().join('|') || null;
} ).sort( (a, b) => button_types.indexOf(a) - button_types.indexOf(b) ).join('|') || null;
if ( type === 'new' && !userSettings.guilds.isMember.get(guild).channels.some( channel => {
return ( channel.id === settings.channel && !channel.isForum && !channel.isCategory );
} ) ) return res(`/guild/${guild}/rcscript/new`, 'savefail');
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"got": "^14.4.3",
"got-ssrf": "^3.0.0",
"htmlparser2": "^9.1.0",
"mediawiki-projects-list": "^4.7.2",
"mediawiki-projects-list": "^4.7.3",
"npm": "^10.9.0",
"pg": "^8.13.0"
},
Expand Down

0 comments on commit bcb213e

Please sign in to comment.