3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-12 12:55:02 +00:00

Reformat all files with Prettier

This commit is contained in:
Dragory 2021-09-11 19:06:51 +03:00
parent 0cde0d46d2
commit ac79eb09f5
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
206 changed files with 727 additions and 888 deletions

View file

@ -28,7 +28,7 @@ export const RolesCmd = utilityCmd({
if (args.search) {
const searchStr = args.search.toLowerCase();
roles = roles.filter(r => r.name.toLowerCase().includes(searchStr) || r.id === searchStr);
roles = roles.filter((r) => r.name.toLowerCase().includes(searchStr) || r.id === searchStr);
}
if (args.counts) {
@ -75,7 +75,7 @@ export const RolesCmd = utilityCmd({
} else if (sort === "memberCount" && args.counts) {
roles.sort(sorter("_memberCount", sortDir));
} else if (sort === "name") {
roles.sort(sorter(r => r.name.toLowerCase(), sortDir));
roles.sort(sorter((r) => r.name.toLowerCase(), sortDir));
} else {
sendErrorMessage(pluginData, msg.channel, "Unknown sorting method");
return;
@ -85,7 +85,7 @@ export const RolesCmd = utilityCmd({
const chunks = chunkArray(roles, 20);
for (const [i, chunk] of chunks.entries()) {
const roleLines = chunk.map(role => {
const roleLines = chunk.map((role) => {
const paddedId = role.id.padEnd(longestId, " ");
let line = `${paddedId} ${role.name}`;
if (role._memberCount != null) {