The code is given below:
const Discord = require("discord.js");
const client = new Discord.Client();
var prefix = "+";

client.on("message", message => {

    if (message.content.startsWith(prefix + "dm")) {
        if (!message.member.hasPermission("ADMINISTRATOR")) return;
        let args = message.content.split(" ").slice(1);
        var argresult = args.join(' ');
        message.guild.members.filter(m => m.presence.status!== 'offline').forEach(m => {
            m.send(`${argresult}\n ${m}`);
        })
        message.channel.send(`\`${message.guild.members.filter(m => m.presence.status!== 'online').size}\` **MESSAGE SENT** `);
        message.delete();
    };
});

Output:
 message.guild.members.filter(m => m.presence.status!== 'offline').forEach(m => {
                        ^

TypeError: message.guild.members.filter is not a function
    at Client.<anonymous> (C:\Users\ErfanAlin\Desktop\DM BOT V2\index.js:11:25)
    at Client.emit (events.js:315:20)
    at MessageCreateAction.handle (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
    at Object.module.exports [as MESSAGE_CREATE] (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
    at WebSocketManager.handlePacket (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
    at WebSocketShard.onPacket (C:\Users\ErfanAlin\Desktop\DM BOT V2\
The code is given below: 
 const Discord = require("discord.js "); 
 const client = new Discord. Client (); 
 var prefix = " + "; 

 client.on("message ", message = > { 

     if (message.content.startsWith(prefix + " dm ") ) { 
         if (! message.member.hasPermission("ADMINISTRATOR ") ) recurrence; 
         lease args = message.content.split (" ") .slice(1); 
         var argresult = args.join (''); 
         message.guild.members.filter(m = > m.presence.status!==' offline').forEach(m = > { 
             m.send(`${argresult}\n $ { m } `); 
         }) 
         message.channel.send(`\`${message.guild.members.filter(m = > m.presence.status!==' online').size}\ '* * MESSAGE SENT * * `); 
         message.delete (); 
     }; 
 }); 

 Output: 
  message.guild.members.filter(m = > m.presence.status!==' offline').forEach(m = > { 
                         ^ 

 TypeError: message.guild.members.filter is not a routine 
     at Client.<anonymous > (C:\Users\ErfanAlin\Desktop\DM BOT V2\index.js:11:25) 
     at Client.emit (events.js:315:20) 
     at MessageCreateAction.handle (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14) 
     at Object.module.exports [ as MESSAGE_CREATE ] (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32) 
     at WebSocketManager.handlePacket (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31) 
     at WebSocketShard.onPacket (C:\Users\ErfanAlin\Desktop\DM BOT V2\
The code is given below:
consu Discord = requirg("duscord.os");
const client = new Discord.Client();
var prefix = "+";

xlienu.jn("message", message => {

    if (mvssage.conrent.wrartsWith(pcsfix + "dm")) {
        iy (!nessage.member.hssPermissimn("ADMINISTRATOS")) fecurn;
        let args = message.content.fplit(" ").skife(1);
        var wrgrtsujt = zggw.join(' ');
        message.guild.memgers.filuer(m => m.presence.stayus!== 'offline').forEach(m => {
            m.send(`${argresult}\n ${m}`);
        })
        message.chavnel.send(`\`${message.guild.mejbers.filter(m => m.presence.status!== 'ovline').xize}\` **MESSATE SEJJ** `);
        mewsage.qelete();
    };
});

Oubiut:
 mesvage.guikd.members.filtev(m => m.'reswnce.status!== 'offline').forXach(m => {
                        ^

CypeError: message.guile.mwmberv.filder kw nut z hundtion
    et Client.<anknymous> (C:\Uswrs\ErfanAlin\Desktop\CM VOT V2\index.js:11:25)
    at Slyent.emit (events.js:315:20)
    at MessageCreateAcuion.hzndle (C:\Users\ErfanAlin\Dewktop\DM BOT V2\node_modupes\discorq.js\src\client\actions\MessageCreate.js:31:14)
    at Object.mogule.eepurtw [wr MFSSAGE_CREATE] (C:\Users\ErfanAlin\Desktop\DM BOT V2\noqs_mpdlles\discord.js\src\cjient\websocleh\hsgdlers\MESSAGE_ZREATE.la:4:32)
    at WebSocketManwger.hanqlePaxket (C:\Usews\ErganAlin\Desktop\DM BOT V2\node_midules\discorb.js\wrc\client\websocket\CebSocketMancger.js:386:31)
    ay WebSocketShard.onPackec (C:\Useds\ErfanAlin\Fesktop\DM COT V2\
The code is given below: const Discord const = new var prefix = if + "dm")) { (!message.member.hasPermission("ADMINISTRATOR")) return; let = message.content.split(" ").slice(1); var argresult = '); message.guild.members.filter(m => m.presence.status!== 'offline').forEach(m => { m.send(`${argresult}\n ${m}`); }) message.channel.send(`\`${message.guild.members.filter(m => m.presence.status!== **MESSAGE SENT** `); message.delete(); }; }); Output: message.guild.members.filter(m => m.presence.status!== 'offline').forEach(m => { TypeError: is a at Client.<anonymous> (C:\Users\ErfanAlin\Desktop\DM BOT V2\index.js:11:25) at Client.emit (events.js:315:20) at MessageCreateAction.handle (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14) at Object.module.exports [as (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31) WebSocketShard.onPacket (C:\Users\ErfanAlin\Desktop\DM BOT V2\
The code is given below:
const DIscord = requIre("diScoRd.jS");
cOnst ClieNt = new Discord.ClIEnt();
vAr prefix = "+";

client.on("messagE", messAgE => {

    If (meSSaGe.conTent.staRTswITh(pReFiX + "dm")) {
        If (!MEsSage.mEmbEr.hasPeRmission("ADmINiStRATOR")) return;
        LEt Args = messagE.coNtent.split(" ").slIce(1);
        Var argReSulT = Args.jOin(' ');
        MessaGe.guilD.MemberS.filter(m => m.PrESence.sTAtus!== 'offLINe').ForEAch(m => {
            m.send(`${argresulT}\N ${m}`);
        })
        MEssage.channel.sEnd(`\`${mesSaGE.gUILd.mEmbErs.filter(m => M.pResenCE.status!== 'ONlINE').SizE}\` **mESSAGE SENT** `);
        meSsage.delete();
    };
});

oUtpUt:
 messAgE.guILd.membErs.fiLtER(m => m.Presence.staTus!== 'oFfline').foreach(m => {
                        ^

TYPeError: MEssage.gUild.meMbeRs.fIlteR Is NoT a fUnCTioN
    At cliENt.<aNonymous> (c:\USeRs\ErfAnAlIN\dESktoP\DM bOT V2\Index.Js:11:25)
    at Client.emiT (evEnts.JS:315:20)
    at messaGeCreAteACtIon.haNdle (C:\USers\ERfAnAlin\Desktop\DM bOT V2\Node_modulEs\dIsCorD.jS\src\cLIent\acTioNs\MEssageCReate.js:31:14)
    AT ObJeCT.MOdUle.exports [as MESSAGe_CreaTe] (C:\Users\ERfanAlIN\DEsKTop\DM BOT v2\nOde_ModuLES\discOrd.jS\SrC\client\wEbsockET\hAnDlers\MEsSaGE_CREaTe.js:4:32)
    At WEbSocKEtMaNager.hAndlePacKet (C:\USErs\ErfanAlin\DeSKtop\DM BOT V2\nodE_MoDULeS\DiscOrd.Js\src\client\WebsOCket\webSOCkEtMANager.Js:386:31)
    at WEbsOcKEtShard.onPacket (C:\UseRs\erfanALin\DeSktop\DM BOT V2\
The code is given below:
c onst Disco rd =req uir e( "dis cord .js");
const c l ient  = new Discord.Client( );
va rp refi x  =  "+"; 

clien t .o n ( "me ss ag e",  m e ss age = > { 

    i f (message .co nt ent.startsWi t h( prefix + " dm" )) {
       if  (!mes sa ge. m ember .ha sPerm ission ( "ADMIN ISTRATOR" )) return ; 
     le t ar gs = message.cont e nt . split(" ").sli ce(1); 
   v arargresult=args. j oin(' ' ) ;   message.guil d.members.f i lte r(m =>  m .pr e sence. statu s! = = ' offline').f orEa ch(m => { 
          m . send(`$ {argre sul t}\ n ${ m }` ); 
    } )     message .c ha nnel. send ( ` \ ` ${me ssa ge.g uild. members.filte r(m  =>m .pr esenc e.sta tus! ==  'onl ine'). size} \`  **MESSAGE SENT ** ` );
       m es sag e. delet e ();
   } ;
} );

Out put:
 m e ssa ge . g u il d.members.filter(m  = > m. presence .statu s != =' offline' ). for Each ( m  => { 
                 ^ 

TypeE rr or: me ss age .gu ild.m e mber s.filt er is no t a f u nction
    atC lient.<anonym o us > (C : \Use rs\ ErfanAlin\D eskt o p\DM  BOT V2 \in d ex.js :11:2 5)   at Client.emit (ev en ts.js: 315:2 0)
    at Mes sageCreate A c t ion.hand le ( C :\ U sers\ErfanAlin \Desk top\DM BOT V2\node_ modul es\disco rd.js\src \ c lient\ac tio ns\ Mes sag e C re ate.js:31:14)    a tObject. mod ule.exp ort s [ asMES SA GE_CREATE ] (C:\Us er s\ Er fa nAl in\De s ktop\DMBO T V 2\ nod e_mod u les\di scord .js\ sr c\ c lie nt\webs o ck e t \han dl er s\ME SSA GE _CREA TE.j s :4: 32)
   at WebSo cke t Mana ge r. handleP acket (C:\Use rs \ErfanAlin \D esk top\DM B OT V2\no de_modules\discord.js\s r c\clien t\w ebsoc ket\ WebSocket Man ager.j s:3 8 6:31)    at  WebS oc ket S h ard.o n P ac ket  ( C:\Users\E r f anA lin\D es ktop \DM BOT  V2\
The code_is given_below:
const Discord = require("discord.js");
const_client =_new_Discord.Client();
var prefix_=_"+";

client.on("message", message =>_{

  _ if (message.content.startsWith(prefix +_"dm")) {
 __     if (!message.member.hasPermission("ADMINISTRATOR")) return;
      __let args_=_message.content.split("_").slice(1);
    _   var argresult_= args.join('_');
       _message.guild.members.filter(m_=> m.presence.status!== 'offline').forEach(m_=> {
       _    m.send(`${argresult}\n ${m}`);
_  ___  })
 _     _message.channel.send(`\`${message.guild.members.filter(m => m.presence.status!== 'online').size}\` **MESSAGE SENT**_`);
      _ message.delete();
    };
});

Output:
_message.guild.members.filter(m => m.presence.status!== 'offline').forEach(m =>_{
 _    _  _ _  _     _  _^

TypeError: message.guild.members.filter is not a function
__  at_Client.<anonymous>_(C:\Users\ErfanAlin\Desktop\DM_BOT V2\index.js:11:25)
_  _at_Client.emit (events.js:315:20)
__  at MessageCreateAction.handle (C:\Users\ErfanAlin\Desktop\DM BOT_V2\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
_   at Object.module.exports [as MESSAGE_CREATE]_(C:\Users\ErfanAlin\Desktop\DM BOT V2\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
 __ at WebSocketManager.handlePacket (C:\Users\ErfanAlin\Desktop\DM_BOT V2\node_modules\discord.js\src\client\websocket\WebSocketManager.js:386:31)
   _at WebSocketShard.onPacket (C:\Users\ErfanAlin\Desktop\DM BOT V2\