I think its just posturing, these countries don't have the logistics to mount a large attack on another country.
Their military are mainly to keep their populations inline and maybe some counterinsurgency.
https://www.sbmintel.com/wp-content/...-1280x1536.jpg
(couldn't load image need to view as link)
#Daily Chart: Military strength of Niger and its allies vs. the rest of ECOWAS
https://twentytendaily.com/daily-cha...est-of-ecowas/
What the French, Russian, Chinese and Americans are up to is a whole other thing.