SPACES IN TEXT WERE DELETED
This commit is contained in:
parent
0ee9694df1
commit
8d3dbd24d9
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ exports.run = async (client, message, args) => {
|
|||
if(args[0].startsWith('<#') && args[0].endsWith('>')) {
|
||||
location = args[0].slice(2, -1);
|
||||
location = guild.channels.find(c => c.id === location);
|
||||
msg = msg.replace(/[0-9]+/g, "");
|
||||
msg = msg.replace(/[$<#> ]+/g, "");
|
||||
msg = msg.replace(/[0-9]+/g, "").replace(/[$<#>]+/g, "").slice(1);
|
||||
console.log(`msg is ${msg}`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue