// File: contracts/Discord.sol



//SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.17;

contract Discord {
    mapping(address => string) public usernames;

    event UsernameUpdated();
    event UsernameDeleted();

    function updateUsername(string calldata username) public {
        usernames[msg.sender] = username;
        emit UsernameUpdated();
    }

    function deleteUsername() public {
        delete usernames[msg.sender];
        emit UsernameDeleted();
    }
}