You need to be the administrator of a specific server to ban and unban in Discord. Besides, temporary bans require Discord bots. After a certain duration, the ban period will be over if a bot bans you. Otherwise, your IP might get banned as well.