How do I add a command where it bans the user in all the servers the bot is in?

I am trying to make a command using discord.js that would execute a command on multiple servers.
this is what I have done so far.

if (isCommand('globalban', message)) {
if(!member.roles.cache.some(role => === 'Staff')) 
   return message.reply("You can't use this command.");
var targetID = args[1]; // this is the targets UserID

if (!targetID)
   return"Please provide the targets ID");
//rest of code goes here. 


I am not sure on how to continue this.

Leave a Comment