removed unnecessary string literal and simplified stuff
This commit is contained in:
parent
392e7fc56e
commit
afe0ec1194
17 changed files with 23 additions and 25 deletions
|
@ -80,7 +80,7 @@ export const HelpCmd = utilityCmd({
|
|||
? `Results (${totalResults} total, showing first ${limitedResults.length}):\n\n`
|
||||
: "";
|
||||
|
||||
message += `${commandSnippets.join("\n\n")}`;
|
||||
message += commandSnippets.join("\n\n");
|
||||
createChunkedMessage(msg.channel, message);
|
||||
},
|
||||
});
|
||||
|
|
|
@ -65,7 +65,7 @@ export async function getServerInfoEmbed(
|
|||
|
||||
if (thisServer) {
|
||||
const owner = await resolveUser(pluginData.client, thisServer.ownerId);
|
||||
const ownerName = `${owner.tag}`;
|
||||
const ownerName = owner.tag;
|
||||
|
||||
basicInformation.push(`Owner: **${ownerName}** (\`${thisServer.ownerId}\`)`);
|
||||
// basicInformation.push(`Voice region: **${thisServer.region}**`); Outdated, as automatic voice regions are fully live
|
||||
|
|
|
@ -391,7 +391,7 @@ async function performMemberSearch(
|
|||
return true;
|
||||
}
|
||||
|
||||
const fullUsername = `${member.user.tag}`;
|
||||
const fullUsername = member.user.tag;
|
||||
if (await execRegExp(queryRegex, fullUsername).catch(allowTimeout)) return true;
|
||||
|
||||
return false;
|
||||
|
@ -458,7 +458,7 @@ async function performBanSearch(
|
|||
|
||||
const execRegExp = getOptimizedRegExpRunner(pluginData, isSafeRegex);
|
||||
matchingBans = await asyncFilter(matchingBans, async user => {
|
||||
const fullUsername = `${user.tag}`;
|
||||
const fullUsername = user.tag;
|
||||
if (await execRegExp(queryRegex, fullUsername).catch(allowTimeout)) return true;
|
||||
return false;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue