There are two different Discord bans: One refers to a ban of the entire application. That ban is applied by the official Discord team and restricts the access to the Discord App for a specific user. The other one refers to a server ban. This one is applied by the admins of the server and restricts the access to the server for a specific user.