def METHOD_NAME(self, other: AllowedMentions) -> AllowedMentions:
    # Creates a new AllowedMentions by merging from another one.
    # Merge is done by using the 'self' values unless explicitly
    # overridden by the 'other' values.
    everyone = self.everyone if other.everyone is default else other.everyone
    users = self.users if other.users is default else other.users
    roles = self.roles if other.roles is default else other.roles
    replied_user = (
        self.replied_user if other.replied_user is default else other.replied_user
    )
    return AllowedMentions(
        everyone=everyone, roles=roles, users=users, replied_user=replied_user
    )