mirror of
https://github.com/danbulant/Shasha
synced 2026-06-08 17:11:03 +00:00
Looks change
This commit is contained in:
parent
c089f1a5a6
commit
547784d853
1 changed files with 12 additions and 8 deletions
|
|
@ -138,14 +138,16 @@ async function ranLog(msg, cmd, addition) {
|
||||||
* @param {Boolean} withID - Include user_ID
|
* @param {Boolean} withID - Include user_ID
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
function multipleMembersFound(client, msg, arr, key, max = 5, withID) {
|
function multipleMembersFound(client, msg, arr, key, max = 4, withID) {
|
||||||
if (arr.length > 1) {
|
arr = arr.slice(1);
|
||||||
|
if (arr.length > 0) {
|
||||||
try {
|
try {
|
||||||
let multipleFound = [];
|
let multipleFound = [];
|
||||||
for(const one of arr) {
|
for(const one of arr) {
|
||||||
let mes = one.user.tag;
|
const user = one.user ?? one;
|
||||||
|
let mes = user.tag;
|
||||||
if (withID) {
|
if (withID) {
|
||||||
mes = mes + ` (${one.user.id})`;
|
mes = mes + ` (${user.id})`;
|
||||||
}
|
}
|
||||||
multipleFound.push(mes);
|
multipleFound.push(mes);
|
||||||
}
|
}
|
||||||
|
|
@ -360,8 +362,9 @@ function findRoleRegEx(msg, name) {
|
||||||
* @param {Boolean} withID - Include channel_ID
|
* @param {Boolean} withID - Include channel_ID
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
function multipleChannelsFound(client, msg, arr, key, max = 5, withID) {
|
function multipleChannelsFound(client, msg, arr, key, max = 4, withID) {
|
||||||
if (arr.length > 1) {
|
arr = arr.slice(1);
|
||||||
|
if (arr.length > 0) {
|
||||||
try {
|
try {
|
||||||
let multipleFound = [];
|
let multipleFound = [];
|
||||||
for(const one of arr) {
|
for(const one of arr) {
|
||||||
|
|
@ -400,8 +403,9 @@ function multipleChannelsFound(client, msg, arr, key, max = 5, withID) {
|
||||||
* @param {Boolean} withID - Include role_ID
|
* @param {Boolean} withID - Include role_ID
|
||||||
* @returns {String}
|
* @returns {String}
|
||||||
*/
|
*/
|
||||||
function multipleRolesFound(client, msg, arr, key, max = 5, withID) {
|
function multipleRolesFound(client, msg, arr, key, max = 4, withID) {
|
||||||
if (arr.length > 1) {
|
arr = arr.slice(1);
|
||||||
|
if (arr.length > 0) {
|
||||||
try {
|
try {
|
||||||
let multipleFound = [];
|
let multipleFound = [];
|
||||||
for(const one of arr) {
|
for(const one of arr) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue