Update commands (#2325)

* kick-ban all members by servername

* Add command for deleting multiple messages

* remove console logs and improve ban command description

* improve commands description

* add server acl command

* fix code highlight not working after editing in dev tools
This commit is contained in:
Ajay Bura 2025-05-13 16:16:22 +05:30 committed by GitHub
parent 13f1d53191
commit 87e97eab88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 339 additions and 45 deletions

View file

@ -125,3 +125,9 @@ export const suffixRename = (name: string, validator: (newName: string) => boole
};
export const replaceSpaceWithDash = (str: string): string => str.replace(/ /g, '-');
export const splitWithSpace = (content: string): string[] => {
const trimmedContent = content.trim();
if (trimmedContent === '') return [];
return trimmedContent.split(' ');
};