Discord has confirmed that a bug in its automated moderation system mistakenly banned more than 8,000 users over the past two months, flagging.